|
add-to-ymdhms Full Description |
|
Syntax define stream function add-to-ymdhms
value stream ymdhms
years value counter years-to-add optional initial {0}
months value counter months-to-add optional initial {0}
days value counter days-to-add optional initial {0}
hours value counter hours-to-add optional initial {0}
minutes value counter minutes-to-add optional initial {0}
seconds value counter seconds-to-add optional initial {0}
Purpose This function takes a date/time in "YYYYMMDDhhmmss+ZHZM" format and any number of values to add or subtract from the given date/time. After the new date/time has been calculated, it is returned in "YYYYMMDDhhmmss+ZHZM" format. Arguments:
Note that all except the "ymdhms" argument are optional, and that the default value of all optional arguments is 0 (zero). Example:
process local stream t100 set t100 to add-to-ymdhms now-as-ymdhms hours 100 output "Now + 100 hours = " || t100 || "%n" |