Skip to main content
?

datetime-add-to-now

Summary​

Generates an ISO 8601 datetime by adding an amount of time to the current datetime

Description​

Takes changes such as summer time/DST into account. Adding just a few seconds to a datetime just before "spring forward" can cause wall time to increase by more than an hour.

Fields​

count​

The amount of time to be added based on the time units. Negative values will move backwards in time.

time_unit​

The time unit to be added: millisecond, microsecond, nanosecond, second.