-
Notifications
You must be signed in to change notification settings - Fork 0
cUnixTime
Ben Izd edited this page Jan 16, 2022
·
1 revision
Current offset from 1970-1-1
in "GMT"
TimeZone
:
cUnixTime[]
(* Out: 1642361266.076839 *)
Convert AbsoluteTime
(offset from 1900-1-1
) to offset from 1970-1-1
:
cUnixTime[654655641165]
(* Out: 1642361315.697079 *)
Offset from a given DateList
:
cUnixTime[{2020, 1, 1}]
(* Out: 1577824200. *)
cUnixTime[{2020, 1, 1}, TimeZone -> 0]
(* Out: 1577836800. *)
My system TimeZone
is +3.5
.
Normal Functions (Pure Wolfram-Language):
Low-Level Functions (via LibraryLink
):