It is currently 22 May 2018 7:34


Post new topic  Reply to topic  [ 2 posts ] 
Author Message
PostPosted: 09 Mar 2012 5:50 
Offline
Nouveau
Nouveau
User avatar

Joined: 05 Jan 2009 12:00
Posts: 5
Location: Salt Lake City, UT
I'm trying to set a variable to submission time minus 5 minutes. I have it working except for top of the hour through 4 minutes past. This is because I parse %%TIME to HH and MM, then %%MINUS 5 from the MM. Top of the hour returns a negative value plus the HH would need correction. Any suggestions would be appreciated.


Top
   
 Post subject:
PostPosted: 11 May 2012 11:23 
Offline
Nouveau
Nouveau
User avatar

Joined: 29 Nov 2006 12:00
Posts: 37
Location: Ile de France
One way of doing it with AutoEdit :

%%MonHeureSys
_____________2%%SUBSTR %%TIME 1 4
%%MaskMinutes
_____________0000004444
%%MaskHeures
______________02400
%%HeureInter
_______________%%MonHeureSys %%MINUS 5 (<== 0< minutes to subtract <41)
%%PosDansMaskMin
__________%%SUBSTR %%HeureInter 4 1
%%PosDansMaskMin
__________%%PosDansMaskMin %%PLUS 1
%%DizainePourSoustr
_________%%SUBSTR %%MaskMinutes %%PosDansMaskMin 1
%%HeureInter2
______________%%HeureInter %%MINUS %%DizainePourSoustr.0
%%PosDansMaskHeure
________%%SUBSTR %%HeureInter2 1 1
%%PosDansMaskHeure
________%%PosDansMaskHeure %%PLUS %%PosDansMaskHeure
%%AjouterHeures
____________%%SUBSTR %%MaskHeures %%PosDansMaskHeure 2
%%MonHeureCalculee
_________%%HeureInter2 %%PLUS %%AjouterHeures.00
%%HH
_____________________%%SUBSTR %%MonHeureCalculee 2 2
%%MM
_____________________%%SUBSTR %%MonHeureCalculee 4 2

Regards


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 2 posts ] 

All times are UTC+02:00


Who is online

Users browsing this forum: Google [Bot] and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Limited
The site created by Franck YOT. Images, logo, content and trademarks about Control-M products are property of BMC Software.
All the comments are property of their posters. Images, logo, content and design are © copyright by Scheduler-Usage.com. All Rights Reserved