"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

  • 1234567positive integers
    -1234567negative integers
    1,234,567integers with separators

Restriction Specifications

Options

  • The following options can be used:
  • DigitBlockInfinitynumber of digits between breaks
    NumberSeparator{","," "}string to insert at breaks between blocks
    NumberSigns{"-",""}strings to use for signs of negative and positive numbers

Interpretation

Examples

Basic Examples  (3)

Interpret Unix times:

In[1]:=
Click for copyable input
Out[1]=
In[2]:=
Click for copyable input
Out[2]=

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

In[1]:=
Click for copyable input
Out[1]=

Restrict the value to be within a given range:

In[1]:=
Click for copyable input
Out[1]=

Use a custom number separator:

In[1]:=
Click for copyable input
Out[1]=

Set a resolution of minutes:

In[1]:=
Click for copyable input
Out[1]=
In[2]:=
Click for copyable input
Out[2]=

Related Interpreters

See Also

Interpreter  Restricted  Failure  FromUnixTime