Browse Prior Art Database

OS/2 Distributed Automation Edition NLS Date and Time Routine

IP.com Disclosure Number: IPCOM000109401D
Original Publication Date: 1992-Aug-01
Included in the Prior Art Database: 2005-Mar-24
Document File: 1 page(s) / 46K

Publishing Venue

IBM

Related People

Genty, D: AUTHOR [+2]

Abstract

Disclosed is a NLS Time/Date function which will return the system date and time in correctly formatted NLS strings. NLS Time/Date function is used to retrieve the current time and date from OS/2* Distributed Automation Edition* and is dependent on configuration information at the time of initialization of Distributed Automation Edition. It is designed to be used in Distributed Automated Edition applications.

This text was extracted from an ASCII text file.
This is the abbreviated version, containing approximately 70% of the total text.

OS/2 Distributed Automation Edition NLS Date and Time Routine

       Disclosed is a NLS Time/Date function which will return
the system date and time in correctly formatted NLS strings.  NLS
Time/Date function is used to retrieve the current time and date from
OS/2* Distributed Automation Edition* and is dependent on
configuration information at the time of initialization of
Distributed Automation Edition.  It is designed to be used in
Distributed Automated Edition applications.

      The function supports European, Japanese, and American formats
of timestamps with the correct date and time separators (i.e., ":" or
"-") returned in a string.  Correct MMDDYY sequence is also returned.
The function will also convert a user-supplied long integer form of
time and date into a NLS correctly formatted character string.  The
function will also return a long integer form of a date.

      The NLS Time/Date function uses an action code to determine
which type of data to return to the calling application. Depending on
the action, the function returns the time and date information.
      If action = 1, the function obtains the system time and
converts it to a string. The time string and remaining characters
returned contain the suffix of "AM" or "PM", in different languages,
depending upon the suffix set in the OS/2 Presentation Manager*
Control Panel on the node where the function is called.
      If action = 2, the function takes the long integer form of a...