dttoutc#
Purpose#
Converts DT scalar format to UTC scalar format.
Format#
- utc = dttoutc(dt)#
- Parameters:
dt (Nx1 vector) – DT scalar format.
- Returns:
utc (Nx1 vector) – UTC scalar format.
Examples#
dt = 20010326085118;
tc = dttoutc(dt);
print "tc = " tc;
The above code produces the following output:
tc = 985633642;
Remarks#
In DT scalar format, 10:50:31 on July 15, 2010 is 20100703105031. A UTC scalar gives the number of seconds since or before January 1, 1970 Greenwich Mean Time.
Source#
time.src
See also
Functions dtvnormal(), timeutc(), utctodtv(), dttodtv(), dtvtodt(), dtvtoutc(), dtvtodt(), strtodt(), dttostr()