IFDATETIME Conditional branch upon date time comparison |
Top Previous Next |
This command is used to compare two specified date and time strings in the format of Sat Feb 16 11.00.22 2013.
When specifying a date, leading zeroes are required. The following are examples of valid date strings.
Syntactically, no space is permitted to the left of the ‘!’, '=', '<' or '>' symbols, and a space is required to the right of these symbols.
The following conditional branch is taken if the current date is past June 21, 2013 12:00:00 AM.
IFDATETIME> %datetime "Fri Jun 21 12.00.00 2013" GOTO later date
Related command(s): IFDATE, IFTIME, DATETIMEADD, DATETIMESUB, FILECOMPARETO, FILECOMPAREFROM See also: Comparing Local and Remote Files, Comparing File Dates and Times, Using the %date, %datetime, and %time Variables |