×

Date to Unix Time

iOS 15 +

Notes

Gets the Unix time for the input date. Write "now" as the date to get it for the currentdate and time. Unix time (also known as Epoch time) is a system for describing a point in time — the number of seconds that have elapsed since the Unix epoch.

Syntax

dateToUnixTime(date: <#String (Allows Variables)#>)

Example

dateToUnixTime(date: "January 1st 1997")