Copyright (c) 1996-1999 Object Tools and others, see "forum.txt"


                            Cluster TimeDate


1. Introduction

The package contains updated version of TimeDate cluster from Object
Tools. Usually it comes with standard Visual Eiffel setup and now is
released under Eiffel Forum Freeware License (see "forum.txt").

The classes of the cluster represent long and short durations, time and
date abstractions and their combinations, current date and time.


2. Structure

The package consists of the following parts: library, documentation and
examples.

2.1. Library

The library contains TimeDate cluster with all source files:

   *.e         - classes of the cluster TimeDate
   cluster.es  - the cluster description for Visual Eiffel
   precomp.eld - file to precompile the cluster under Visual Eiffel

To precompile the cluster under Visual Eiffel, run

   vec -p:precomp.eld

2.2. External code

Additional C code resides in C subdirectory:

   *.h                   - C header files
   *.c                   - C source files
   Makefile.common       - common part of Makefiles
   Makefile.common.Win32 - common part of Makefiles for Win32 platform
   Makefile.ISE.Win32    - makefile for ISE compiler under Win32
   Makefile.VE.Win32     - makefile for VE compiler under Win32

To build the library, run

   nmake -f Makefile.ISE.Win32
or
   nmake -f Makefile.VE.Win32

for ISE and VE compilers respectively.

The makefiles assume that compiler-specific environment variables are
set:

   EIFFEL4 - for ISE compiler - points to ISE installation directory
   VE_Bin  - for VE compiler  - points to "bin" subdirectory of VE
                                installation directory

2.3. Documentation

Directory "doc" contains TimeDate documentation. It includes both manual
(subdirectory lib\TimeDate) and generated short forms and source text
(subdirectory lib\HTML\TimeDate).

2.4. Examples

Directory "examples" contains the following files

   *.e          - support Eiffel classes for TimeDate examples
   make_all.bat - batch file to build all examples automatically

Every example may contain the following files:

   *.e         - Eiffel source code
   ise.ace     - ACE file for ISE compiler
   se.bat      - batch file to invoke SmallEiffel compilation
   Make_It.esd - Visual Eiffel ESD file


3. Installation

3.1. General requirements

Visual Eiffel
   This is a replacement of the standard Visual Eiffel TimeDate cluster.
   You can install it by removing the old version and installing this
   one in the corresponding folders. Build the C library as described
   above.

SmallEiffel
   Unpack "library" directory where you want to store TimeDate cluster.
   Unpack "examples" directory in the place suitable for examples. The
   following environment variable should be set:
      VE_Lib  - points to the directory where "library" directory was
                unpacked
   Ensure that environment variable PATH includes directory with SmallEiffel
   executable files and required C compiler. 

ISE
   Same as SmallEiffel, except that the following environment variables
   should be set:
      EIFFEL4 - points to ISE Eiffel environment installation directory
   Ensure that environment variable PATH includes directory with ISE
   Eiffel executable files. Build the C library as described above.

3.2. Compiling examples

All examples could be assembled automatically using supplied
"make_all.bat" file. Depending on what Eiffel compiler you use, you can
run

   make_all.bat VE  - for Visual Eiffel
   make_all.bat SE  - for SmallEiffel
   make_all.bat ISE - for ISE Eiffel compiler


4. Platforms

The library was designed to be portable accross different operating
systems and Eiffel environments. However, it was tested only under
Windows 95 with the following Eiffel compilers: Visual Eiffel, ISE
Eiffel compiler, SmallEiffel. With minor changes it runs under Linux
with Visual Eiffel. It should be straightforward task to compile
TimeDate with Halstenbach Eiffel compiler.

Examples "Test_Dat" and "Test_Doc" were assembled only under Visual
Eiffel, because they rely on Visual Eiffel "Format" cluster.

Several examples can not be built under SmallEiffel because SmallEiffel
class STRING provides the following signature for feature "insert":
   insert (c: CHARACTER; i: INTEGER)
while ELKS'95 requires
   insert (c: like Current; i: INTEGER)

The following compilers were used for testing:

   Visual Eiffel v3.1 (Build 3899) 
   Visual Eiffel v3.2 (Build 4199)
   SmallEiffel -0.80
   ISE Eiffel compiler v4.2f


5. License

See "forum.txt" included in the distribution.
