SoftTree Technologies SoftTree Technologies
Technical Support Forums
RegisterSearchFAQMemberlistUsergroupsLog in
@T"mmm-dd-yyyy hh.mm.ss", mask quest

 
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite View previous topic
View next topic
@T"mmm-dd-yyyy hh.mm.ss", mask quest
Author Message
Robert Kratcoski



Joined: 24 Jul 2002
Posts: 8

Post @T"mmm-dd-yyyy hh.mm.ss", mask question. Reply with quote

Hi,

I have a question about the masks in the macro parameters. First, the help says:

>>>@T" " - Returns current date and time. The actual representation depends on the mask. >>
MessageBox("@T"mmm-dd-yyyy hh.mm.ss"")
Wait 10
MessageBox("@T"mmm-dd-yyyy hh.mm.ss"")
Wait 10
MessageBox("@T"mmm-dd-yyyy hh.mm.ss"")
Wait 10
<<<

When I run the script, the time never seems to change between references to the @T"mask" macro. Are HH, MM, and SS valid masks with the macros? I didn't see them in the help, but yet the MessageBox() statements above do report hours, minutes, seconds. It just seems that the "time" the mask is referencing doesn't update on the second and third calls to the macro.

Any ideas? I'm using V3.3.1.

Robert

Mon Jul 29, 2002 4:37 pm View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7948

Post Re: @T"mmm-dd-yyyy hh.mm.ss", mask quest Reply with quote

The mask is valid. It is just the macro-parameters are substituted with the values just before the job is started. That's why all values are the same.

To get the real-time values use "Today" and "Now" methods

Example:

Dim( time_now, time )
Now( time_now )
MessageBox( time_now )
... some long processing here ...
Now( time_now )
MessageBox( time_now )

: Hi,

: I have a question about the masks in the macro parameters. First, the help
: says: MessageBox("@T"mmm-dd-yyyy hh.mm.ss"")
: Wait 10
: MessageBox("@T"mmm-dd-yyyy hh.mm.ss"")
: Wait 10
: MessageBox("@T"mmm-dd-yyyy hh.mm.ss"")
: Wait 10
: <<<

: When I run the script, the time never seems to change between references to
: the @T"mask" macro. Are HH, MM, and SS valid masks with the
: macros? I didn't see them in the help, but yet the MessageBox() statements
: above do report hours, minutes, seconds. It just seems that the
: "time" the mask is referencing doesn't update on the second and
: third calls to the macro.

: Any ideas? I'm using V3.3.1.

: Robert

Mon Jul 29, 2002 4:50 pm View user's profile Send private message
Display posts from previous:    
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite All times are GMT - 4 Hours
Page 1 of 1

 
Jump to: 
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 vote in polls in this forum


 

 

Powered by phpBB © 2001, 2005 phpBB Group
Design by Freestyle XL / Flowers Online.