|
|
Hello,
It is possible to do calculations with time/date. I'm copying here a section from help file:
....
The expressions support also time arithmetic's. The time must be in appropriate format which is "YYYY.MM.DD HH:MM:SS". The difference between two times is "time span" that has this format "Days HH:MM:SS". The time span is also used to add/subtract amount of time to/from given time. This operations are supported:
"Days HH:Mi:SS" = "YYYY.MM.DD HH:Mi:SS" - "YYYY.MM.DD HH:Mi:SS"
"YYYY.MM.DD HH:Mi:SS" = "YYYY.MM.DD HH:Mi:SS" + "Days HH:Mi:SS"
"YYYY.MM.DD HH:Mi:SS" = "YYYY.MM.DD HH:Mi:SS" - "Days HH:Mi:SS"
"Days HH:Mi:SS" = "Days HH:Mi:SS"+"Days HH:Mi:SS"
"Days HH:Mi:SS" = "Days HH:Mi:SS"-"Days HH:Mi:SS"
Example3: <varset>("vTomorrowDate=EXPR(%_vCurrDateTime_ForCalc%+1 0:0:0)","") <#> What date will be 1 day later (next day)?
Example4: <varset>("vDate=EXPR(%_vCurrDateTime_ForCalc%-10 13:45:10)","") <#> What date was before 10 days, 13 hours, 45 minutes and 10 seconds?
Example5: <varset>("vTimeSpan=EXPR(%_vCurrDateTime_ForCalc%-2005.11.21 13:45:00)","") <#> How much time left since 2005/11/21, 13:45:00?
....
In addition, Macro Toolworks and WinScheduler have their own scheduler that allows to fire a macro on defined time/date. Maybe yo could use it for your purposes too....
Best regards,
Petr |
IP Logged
|