Skip to content

UnixTime

UnixTime[] returns the integer seconds since the Unix epoch in UTC time.

Attributes[UnixTime] := {Protected, ReadProtected}

Simple examples

Get the current Unix timestamp:

In[1]:= UnixTime[]
Out[1]= 1484805639
UnixTime returns an Integer:
In[2]:= Head[UnixTime[]]
Out[2]= Integer