OpenersNotesSection(Spacer1)Details

OpenersPrimaryExamplesSection(Spacer1)Examples  (3)

OpenersExampleSection0(Spacer1)Basic Examples  (3)

Interpret Unix times:

Interpreter["UnixTime"]["1429297335"]

Interpreter["UnixTime"]["1577836800"]

Use negative integers for times before January 1, 1970, 00:00:00 UTC:

Interpreter["UnixTime"]["-123456789"]

Restrict the value to be within a given range:

Interpreter[Restricted["UnixTime", {(DateObject["Thu 1 Jan 1970", DateObject[{1970,1,1}]]),(DateObject["Tue 1 Jan 1980", DateObject[{1980,1,1}]])}]]["2.3e9"]

Use a custom number separator:

Interpreter["UnixTime",NumberSeparator->"."]["1.577.836.800"]

Set a resolution of minutes:

Interpreter[Restricted["UnixTime", {-Infinity,Now,"Minute"}]]["120"]

Interpreter[Restricted["UnixTime", {-Infinity,Now,"Minute"}]]["155"]

({{DocumentationFooterIconsRelatedFunction.png, ({{See Also}, {(RefLink[Interpreter, paclet:ref/Interpreter])  ▪  (RefLink[Restricted, paclet:ref/Restricted])  ▪  (RefLink[Failure, paclet:ref/Failure])  ▪  (RefLink[FromUnixTime, paclet:ref/FromUnixTime])}, {Related Interpreter Types:  (RefLink[Time, paclet:ref/interpreter/Time])  ▪  (RefLink[Date, paclet:ref/interpreter/Date])  ▪  (RefLink[DateTime, paclet:ref/interpreter/DateTime])  ▪  (RefLink[DayOfWeek, paclet:ref/interpreter/DayOfWeek])  ▪  (RefLink[ExcelDate, paclet:ref/interpreter/ExcelDate])  ▪  (RefLink[StructuredTime, paclet:ref/interpreter/StructuredTime])  ▪  (RefLink[ComputedTime, paclet:ref/interpreter/ComputedTime])  ▪  (RefLink[StructuredDate, paclet:ref/interpreter/StructuredDate])  ▪  (RefLink[ComputedDate, paclet:ref/interpreter/ComputedDate])  ▪  (RefLink[StructuredDateTime, paclet:ref/interpreter/StructuredDateTime])  ▪  (RefLink[ComputedDateTime, paclet:ref/interpreter/ComputedDateTime])}})}})

({{DocumentationFooterIconsRelatedGuide.png, ({{Related Guides}, {▪(RefLinkPlain[Setting Up Input Interpreters, paclet:guide/InterpretingStrings])}})}})