before

get date before given one using interval


Parameters

before date :date

Attributes

nanoseconds:integersubtract given number of nanoseconds
milliseconds:integersubtract given number of milliseconds
seconds:integersubtract given number of seconds
minutes:integersubtract given number of minutes
hours:integersubtract given number of hours
days:integersubtract given number of days
weeks:integersubtract given number of weeks
months:integersubtract given number of months
years:integersubtract given number of years

Returns

  • :date

Examples

copy
print now ; 2021-03-22T11:27:00+01:00 print before.weeks:2 now ; 2021-03-08T11:27:14+01:00 print before.years:1 now ; 2020-03-22T11:27:23+01:00

Related