FromUnixTime

FromUnixTime[time]

gives a date object corresponding to a UnixTime specification.

Details and Options

Examples

open allclose all

Basic Examples  (2)

Create a DateObject expression from a Unix time specification:

Get the start date for Unix time, expressed in the GMT time zone:

Options  (1)

TimeZone  (1)

Specify the time zone for the output DateObject expression:

Properties & Relations  (2)

FromUnixTime converts from Unix time into a DateObject expression:

UnixTime converts back into Unix time form:

If Unix time was stored in a signed 32-bit integer, then it would cover a period of about 136 years:

FromUnixTime can work with much larger integers:

Possible Issues  (1)

By default, FromUnixTime returns results in your $TimeZone:

For a historical value of a time stamp in a given location at a given time, LocalTime can be used:

Introduced in 2015
 (10.1)