(PYVMS LOGO) Python on OpenVMS

(go to: table of contents, index, list of vms_sys, prev: GETUAI, next: GRANTID)


GETUTC - Get UTC Time


Returns the current time in 128-bit UTC format.

Format:

    utcadr = vms_sys.getutc ()
Returns:
utcadr
128-bit UTC value - a Python long integer
Arguments:

vms_sys.getutc() does not take any arguments.

Examples:

>>> import vms_sys

>>> o_utctim = vms_sys.getutc ()
>>> print o_utctim
21584378040929278433485881178387187456L

>>> print vms_sys.ascutc (o_utctim)
 9-JAN-1999 19:59:12.88

>>> print vms_sys.asctim ()
 9-JAN-1999 19:59:58.44

>>> vms_sys.getutc (None)
Traceback (innermost last):
  File "<stdin>", line 1, in ?
TypeError: function requires exactly 0 arguments; 1 given

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

(go to: table of contents, index, list of vms_sys, prev: GETUAI, next: GRANTID)

09-JAN-1999 ZE.