===============================================================================
                  Internationalization (I18N) For OS/2                 
===============================================================================

                Copyright IBM Corporation -- 1993, 1994, 1995

DISCLAIMER: This package is not a full implementation of the X/Open XPG4 
specification and does not make any claims of XPG4 branding. It implements 
only the portions of the XPG4 specification which deal with 
internationalization.

X/Open is a trademark of the X/Open Company Limited.

===============================================================================


/************************/
/***     Contents     ***/
/************************/

1.  Overview
2.  Files in this directory
3.  How to run the sample program
4.  How to compile the sample program


1.  Overview
============

The sample program in this directory demonstrates the use of culturally-based
date and time formatting functions (strptime, strftime, wcsftime).  These APIs
allow formatting to and from strings (and wide char strings) to the "time_t"
structure.  The formatting for these functions is based on the current locale,
as defined with environment variables.


2.  Files in this directory
===========================

File            Purpose
------------------------------------------------------------------------------
dt.c            Source code for the dt sample program.
dt.def          Definition file needed for compiling the program.
dt.mak          Make file used to compile the sample.
dt.exe          Compiled version of the dt sample.

build.cmd       A command file which will compile and link the sample program.
read.me         This file.


3.  How to run the sample program
=================================

This sample program shows how one can perform culturally-based time and date
formatting, for both char and wchar_t data types.  The following steps show
how the program can be run.

     1) Run the \i18n\bin\new_vars command file (or have the environment
        variables already set).

     2) Set the value of either LC_ALL or LANG to: En_US (US English).

          Ex:   set LANG=En_US

     3) Execute the dt.exe program.

          Ex:   dt

     4) The output from the program should be (note that the date and time
         for the last two statements is based on your system's current date
         and time):

          Locale for date and time: ENUS437

          Loaded in date:  10/21/93 and time:  12:34:56

          Today is: Friday, March 18 1994. Time is:  11:28:47 AM

          Date converted with wchar_t type:
          Today is: Friday, March 18 1994. Time is:  11:28:47 AM

     5) Experiment with changing the values of the LANG environment
        variable.


4.  How to compile the sample program
=====================================

NOTE: The sample program is already compiled for you.  If you want to see the
 behavior of the program, you can just run it.  The following instructions
 are needed only if you want to modify the program and recompile it.

To compile the sample application:

     1) Make sure that the CSET/2 compiler and OS/2 toolkit are installed
        correctly on your system.

     2) cd to the directory which contains the collate source files.

     3) Type "build" at the command prompt.

