toStamp

Generate a unix timestamp from a date. To be used in conjunction with sprig date functions.

Example :

{{now | toStamp}}
=> 1603361826
Back to top