LocalToUnixTime

Qubes 9.0 UnixTime for the specified datetime in the current workstation timezone.

Syntax

LocalToUnixTime(dateTime)
dateTime = optional date/time in current workstation timezone

Remarks

Returns the UnixTime corresponding to dateTime.

The dateTime parameter is the date in the current workstation timezone.
If the dateTime parameter is not passed, the current date/time on current workstation is used.

Example

If there is a XForms with a date selector in B2 and a time selector in C2, where the user selects a datetime in his timezone.
If we need the corresponding UnixTime, we can use : LocalToUnixTime(B2+C2)

Classification

DateTime