Wolfram Language & System 10.4 (2016)|Legacy Documentation

This is documentation for an earlier version of the Wolfram Language.View current documentation (Version 11.2)

"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.

DetailsDetails

  • "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 FormsAllowed Forms

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

Restriction SpecificationsRestriction Specifications

OptionsOptions

  • 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

InterpretationInterpretation

ExamplesExamplesopen allclose all

Basic Examples  (3)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]=