- :date
before
get date before given one using interval
Parameters
before date :literal :pathliteral :date
Attributes
nanoseconds | :integer | subtract given number of nanoseconds |
milliseconds | :integer | subtract given number of milliseconds |
seconds | :integer | subtract given number of seconds |
minutes | :integer | subtract given number of minutes |
hours | :integer | subtract given number of hours |
days | :integer | subtract given number of days |
weeks | :integer | subtract given number of weeks |
months | :integer | subtract given number of months |
years | :integer | subtract given number of years |
Returns
Examples
copyprint 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