 |
AutoHotkey Community Let's help each other out
|
| View previous topic :: View next topic |
| Author |
Message |
liang Guest
|
Posted: Wed Feb 09, 2005 4:05 pm Post subject: envsub, not working in timestamp |
|
|
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
|
Posted: Wed Feb 09, 2005 6:24 pm Post subject: |
|
|
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 |
|
 |
|
|
You can post new topics in this forum You can reply to topics in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|