Timestamp !

Technical support and scripting issues

Moderators: Dorian (MJT support), JRL

Post Reply
dimmo

Timestamp !

Post by dimmo » Fri Apr 23, 2004 1:39 am

Hey pips,
Is there a way to print a current time stamp ?

Ex: Send> Blah blah ::timestamp:: blah blah.

And is there allsaw a to change the time stamp by adding 2 minutes ?

EX: Send>Blah blah blah ::timestamp + 2 minutes:: blah blah.

thnx

User avatar
Bob Hansen
Automation Wizard
Posts: 2475
Joined: Tue Sep 24, 2002 3:47 am
Location: Salem, New Hampshire, US
Contact:

Post by Bob Hansen » Fri Apr 23, 2004 3:41 am

You could use Timestamp> then read the file, parse it, add two minutes, and write it back to a file and print it.

OR

You could use GetTime>, parse out the minutes and add 2 minutes, recompose the time, and write to a file and print it.

Also see my answer provided in response to Subject: "Time", Problem="How do I add 30 minutes?" at:
http://www.mjtnet.com/forum/viewtopic.php?t=914
Hope this was helpful..................good luck,
Bob
A humble man and PROUD of it!

bennyn
Newbie
Posts: 9
Joined: Fri Nov 19, 2010 1:00 pm
Contact:

Post by bennyn » Thu Mar 03, 2011 11:33 am

Is there any possibilty to get the current timestamp as a variable? Like GetTime>variable ? Because writing a timestamp into a file and parsing it from there wastes too much resources.

User avatar
Marcus Tettmar
Site Admin
Posts: 7391
Joined: Thu Sep 19, 2002 3:00 pm
Location: Dorset, UK
Contact:

Post by Marcus Tettmar » Thu Mar 03, 2011 12:21 pm

Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts