(PYVMS LOGO) Python on OpenVMS

(go to: table of contents, index, list of vms_lib, prev: CVT_VECTIM, next: DAY)


DATE_TIME - Date and Time Returned as a String


Format:
    date_time_string = vms_lib.date_time ()
Returns:
date_time_string
Returns the date current date and time as a 23 character string. Format: 'dd-mmm-yyyy hh:mm:ss.hh'.
Arguments:

vms_lib.date_time() does not take any arguments.

Examples:

>>> import vms_lib

>>> date_time_string = vms_lib.date_time ()
>>> date_time_string
' 2-NOV-1997 16:23:21.93'

* Note that there can be a space character at the begin!

>>> vms_lib.date_time ()
'15-MAR-1996 22:12:31.48'

>>> vms_lib.date_time ('S')
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_lib, prev: CVT_VECTIM, next: DAY)

30-SEP-1998 ZE.