"UnixTime" (Interpreter Type)
Unix time specification in terms of number of seconds that have elapsed since January 1, 1970, 00:00:00 Coordinated Universal Time (UTC), not counting leap seconds.
Details
- "UnixTime" can be used in Interpreter and related constructs, including deployed smart form fields.
- Use of "UnixTime" does not require connectivity to the Wolfram Cloud.
Allowed Forms
-
1234567 positive integers-1234567 negative integers1,234,567 integers with separators
Restriction Specifications
Options
- The following options can be used:
Interpretation
- "UnixTime" yields a DateObject with a TimeObject at its second argument.
Examples
Basic Examples (3)
Interpret Unix times:
Use negative integers for times before January 1, 1970, 00:00:00 UTC:
Restrict the value to be within a given range:
Use a custom number separator:
Set a resolution of minutes:
See Also
Interpreter Restricted Failure FromUnixTime
Interpreter Types: Time Date DateTime DayOfWeek ExcelDate StructuredTime ComputedTime StructuredDate ComputedDate StructuredDateTime ComputedDateTime