AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

envsub, not working in timestamp

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Bug Reports
View previous topic :: View next topic  
Author Message
liang
Guest





PostPosted: Wed Feb 09, 2005 4:05 pm    Post subject: envsub, not working in timestamp Reply with quote

next_run = %a_now%
next_run -= 1, HOURS

not working on minus, but working in plus
Back to top
Chris
Site Admin


Joined: 02 Mar 2004
Posts: 10467

PostPosted: Wed Feb 09, 2005 6:24 pm    Post subject: Reply with quote

That's normal. EnvSub is designed to compare two timestamps and find the amount of time between them.

To subtract some time units from a timestamp, use EnvAdd to add a negative number of hours, days, etc. to it:

next_run += -1, HOURS
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Bug Reports All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group