(PYVMS LOGO) Python on OpenVMS

(go to: table of contents, index, list of vms_lib, prev: GET_COMMON, next: GET_EF)


GET_DATE_FORMAT - Get the User's Date Input Format

Format:
    status, context, format-string = \
        vms_lib.get_date_format ([user-context])
Returns:
status
Condition value as returned by LIB$GET_DATE_FORMAT.
context
Updated context value from the 'user-context' argument. If omitted this will be 'None'.
format-string
The translation of LIB$DT_INPUT_FORMAT and LIB$FORMAT_MNEMONICS or a pre-initialized value when the user-context argument is given.
Arguments:
user-context
A context value that has previously been set by vms_lib.init_date_time_context().
Examples:
>>> import vms_lib


>>> print vms_lib.get_date_format ()
(1, None, 'DD-MONTH-YYYY4 HH:MM:SS.CC2')
>>>


>>> import vms_libdtdef
>>> context = 0
>>> format = "|JJJJ|MM|TT|ST|MI|SE|HU| |MONAT|"
>>> context = vms_lib.init_date_time_context (context,
...               vms_libdtdef.LIB_K_FORMAT_MNEMONICS, format)
>>>
>>> print vms_lib.get_date_format (context)
(1, 2755576, 'TT-MONAT-JJJJ4 ST:MI:SE.HU2')
>>>

(go to: table of contents, index, list of vms_lib, prev: GET_COMMON, next: GET_EF)

08-AUG-1999 ZE.