Browse Prior Art Database

Language Independent Interface For Converting A Character String For Date and Time Into A Time Structure

IP.com Disclosure Number: IPCOM000014901D
Original Publication Date: 2001-Jun-01
Included in the Prior Art Database: 2003-Jun-20
Document File: 3 page(s) / 112K

Publishing Venue

IBM

Abstract

Disclosed is a language independent service that parses date and time localization information including weekend and work day specifications for storage in an internal structure. The service has been defined to exploit localization information for the first work day of the week, the first day of the weekend, the second day of the weekend and a discriminator for a half day as the first day of a weekend. This service relies on a locale to provide localization at run time to cater to local preferences. The service is designed as a procedure call to allow its use by a wide number of programming languages on a variety of processing platforms. The syntax of the service (ACEEFSTD is:

This text was extracted from a PDF file.
This is the abbreviated version, containing approximately 43% of the total text.

Page 1 of 3

  Language Independent Interface For Converting A Character String For Date and Time Into A Time Structure

Disclosed is a language independent service that parses date and time localization information including weekend and work day specifications for storage in an internal structure. The service has been defined to exploit localization information for the first work day of the week, the first day of the weekend, the second day of the weekend and a discriminator for a half day as the first day of a weekend. This service relies on a locale to provide localization at run time to cater to local preferences. The service is designed as a procedure call to allow its use by a wide number of programming languages on a variety of processing platforms. The syntax of the service (ACEEFSTD) is:

void ACEEFSTD ([Locale_Handle], String_in, Format,

            Time_And_Date, Result, [fc]) ACEE_HANDLE *Locale_Handle; VSTRING *String_in; VSTRING *Format; TD_STRUCT *Time_And_Date;

     INT4 *Result; FEED_BACK *fc;

where: Locale_Handle (input/optional): Points to the locale to be used by this service. If none is specified, the current active locale is used.

String_in (input): Contains the character string to be converted. Format (input): Contains the format specifiers. The FORMAT parameter contains zero or more specifiers. Each specifier is composed of one of the following:

One or more white-space characters. An ordinary character (but cannot be a % or a white-space character). A format specifier that begins with the % character.

The following format specifiers are supported:

Specifier Meaning

%a Represents the locale's abbreviated weekday name (for example, Sun) defined by the abday statement.
%A Represents the locale's full weekday name (for example, Sunday) defined by the day statement.
%b Represents the locale's abbreviated month name (for example, January) defined by the month statement.
%B Represents the locale's full month name (for example, January) defined by the month statement.

1

Page 2 of 3

%c Represents the locale's date and time format defined by the d_t_fmt statement. %d Represents the day of the month as a decimal number (01 to 31).
%D Represents the date in %m/%d/%y format (for example, 01/31/91)
%e Represents the day of the month as a decimal number (01 to 31). The %e field descriptor uses a two digit field. If the day of the month is not a two digit number the leading digit is filled with a space character.
%E Represents the locale's combined alternative era year and name respectively in

       %o%N format. %h Represents the locale's abbreviated month name (for example, Jan) defined by the abmon statement. This field descriptor is a synonym for the %b field descriptor. %H Represents the 24-hour clock hour as a decimal number (00 to 23).
%I Represents the 12-hour clock hour as a decimal number (01 to 12).
%j Represents the day of the year as a decimal number (001 to 366).
%m Represents the month of the year as a decimal number (01 to 12).
%M Represents the minutes of...