Time Calculation

aztecconsultingaztecconsulting Member Posts: 55
I need to branch some logic by time so that before 5AM it sets a variable to one value and then after 5AM it uses the other. Can anyone help?

If TIME > (some representation of 5AM) then
x:=1
else
x:=2;

Comments

  • krikikriki Member, Moderator Posts: 9,118
    Is this what you were looking for?
    IF TIME > 050000T THEN ...
    
    Regards,Alain Krikilion
    No PM,please use the forum. || May the <SOLVED>-attribute be in your title!


  • SavatageSavatage Member Posts: 7,142
    Here are some examples of times:

    11:59:00 (11:59 am)
    12:00:00 (12:00 noon)
    12:01:00 (12:01 pm)
    23:59:00 (11:59 pm)
    00:00:00 (12:00 midnight)
    00:01:00 (12:01 am)
Sign In or Register to comment.