@MAKEAGE |
@MAKEAGE[date[,time[,format]]] : Converts date and time (if included) to an age, a single value in the same format as @FILEAGE.
@MAKEAGE accepts an optional third parameter specifying the date format:
0 | default |
1 | USA (mm/dd/yy) |
2 | Europe (dd/mm/yy) |
3 | Japan (yy/mm/dd) |
4 | ISO (yyyy-mm-dd) |
5 | ISO 8601 (yyyy-Www-d) |
6 | ISO 8601 (yyyy-ddd) |
@MAKEAGE can be used to compare the time stamp of a file with a specific date and time, for example:
if %@fileage[myfile] lt %@makeage[1/1/85] echo OLD!
@AGEDATE is the inverse of this function.
Examples:
echo %@makeage[%_date]
129807360000000000
echo %@makeage[%_date,%_time]
129808104040000000
See also: Time Stamps, @FILEAGE, @AGEDATE.