(go to: table of contents, index, list of vms_sys, prev: NUMTIM, next: PARSE_ACL)
NUMUTC - Convert UTC Time to Numeric Components
Format:
09-JAN-1999 ZE.
timbuf = vms_sys.numutc ([utcadr])
Returns:
Arguments:
(year, month, day, hour, minute, second, hundredth,
inaccuracy-days, in-hours, in-minutes, in-seconds
in-hundredth, TDF-in-minutes)
Examples:
>>> import vms_sys
>>> o_binutc = vms_sys.binutc ('29-FEB-2000 12:34:56.78')
>>> print o_binutc
21584378040929278433486240335826187456L
>>> vms_sys.numutc (o_binutc)
(2000, 2, 29, 12, 34, 56, 78, -1, -1, -1, -1, -1, 60)
>>>
>>> vms_sys.asctim ()
' 9-JAN-1999 20:58:01.24'
>>> vms_sys.numutc ()
(1999, 1, 9, 20, 58, 1, 32, -1, -1, -1, -1, -1, 60)
>>> vms_sys.numutc (None)
(1999, 1, 9, 20, 58, 1, 42, -1, -1, -1, -1, -1, 60)
>>>
* The tuple consists of:
( year_since_0, month_of_year, day_of_month, hour_of_day,
minute_of_hour, second_of_minute, hundredths_of_second, inacc_days,
inacc_hours, inacc_minutes, inacc_seconds, inacc_hundredths_of_second,
tdf_in_minutes )
>>> vms_sys.numutc (vms_sys.binutc ('0 01:02:03.45'))
Traceback (innermost last):
File "<stdin>", line 1, in ?
vms_sys.error: (388, '%SYSTEM-F-IVTIME, invalid time')
>>> vms_sys.numutc ('X')
Traceback (innermost last):
File "<stdin>", line 1, in ?
TypeError: argument 1: utcadr - must be long integer
>>>
(go to: table of contents,
index,
list of vms_sys,
prev: NUMTIM,
next: PARSE_ACL)