Navigation

Operators and Keywords

Function List:

C++ API

: tm_struct = gmtime (t)

Given a value returned from time, or any non-negative integer, return a time structure corresponding to CUT (Coordinated Universal Time).

For example:

gmtime (time ())
    ⇒ {
          usec = 0
          sec = 6
          min = 15
          hour = 7
          mday = 17
          mon = 1
          year = 97
          wday = 1
          yday = 47
          isdst = 0
          gmtoff = 0
          zone = GMT
       }

See also: strftime, strptime, localtime, mktime, time, now, date, clock, datenum, datestr, datevec, calendar, weekday.

Package: octave