(PYVMS LOGO) Python on OpenVMS

(go to: table of contents, index, list of vms_sys, prev: BINTIM, next: CANWAK)


BINUTC - Convert ASCII String to UTC Binary Time


Format:
    utcadr = vms_sys.binutc (timbuf)
Returns:
utcadr
128-bit UTC value - a Python long integer.
Arguments:
timbuf
ASCII (date +) time to be converted.
Examples:
>>> import vms_sys

>>> utc_tim = vms_sys.binutc ('29-FEB-2000 12:34:56.78')
>>> print utc_tim
21584378040929278433486240335826187456L
>>> print vms_sys.ascutc (utc_tim)
29-FEB-2000 12:34:56.78

>>> utc_tim = vms_sys.binutc ('30-FEB-2000 12:34:56.78')
Traceback (innermost last):
  File "<stdin>", line 1, in ?
vms_sys.error: (388, '%SYSTEM-F-IVTIME, invalid time')

>>> utc_tim = vms_sys.binutc ()
Traceback (innermost last):
  File "<stdin>", line 1, in ?
TypeError: function requires exactly 1 argument; 0 given
>>>

(go to: table of contents, index, list of vms_sys, prev: BINTIM, next: CANWAK)

09-JAN-1999 ZE.