Using Waituntil()


EOlsen

Recommended Posts

Posted

I saw an example of using WaitUntil(16h)  which would wait until the next 4 pm, but didn't find a discussion of the 16h syntax for time under time functions in the user's guide. I guessing there may be some other related time functions like m and s. Where would I find a list of these and a description of how they work?

 

Looks like 16h must translate into something like floor(SysTime() / 86400) * 86400 + 16 * 3600.

 

 

Posted

It is described in section 4.9.  Note that 16h is 4pm today, not the next 4pm.  So if its already 5pm, 16h will be one hour ago.  This matches the formula you showed.

Posted

Still doesn't help me with the 16h syntax. It shows up in the section of the manual but the "16h" syntax isn't really talked about. Wondering if there is more like 45m?

Posted

In the second paragraph it tells you what happens if you don't specify all the parameters (i.e. you don't specify year, month, day, etc.)  16h would be without y, m, d, m and s, so defaults to today at 16:00:00.

Archived

This topic is now archived and is closed to further replies.