Definition: |
include builtins\timedate.e
timedate td = adjust_timedate(timedate td, atom delta) |
Description: | returns a timedate adjusted by the specified delta in seconds |
Comments: |
The delta parameter is normally the result of a call to timedelta() .
If the timedate has a timezone with a daylight savings rule, it automatically toggles on or off as the date crosses the start and end dates, with the appropriate (additional) time shift. Likewise the day of week and day of year are automatically recalculated. |
Example: |
include builtins\timedate.e timedate td = parse_date_string("1/1/2015",{"D/M/YYYY"}) td = adjust_timedate(td,timedelta(days:=4)) ?format_timedate(td,"Dddd, Mmmm dst, yyyy") -- displays "Friday, January 5th, 2015" |
See Also: | timedate, the timedate type, timedelta, parse_date_string, format_timedate |