		    DATE MANIPULATION PACKAGE
			Richard B. Wales
	  UCLA Center for Experimental Computer Science

This is a software package for manipulating character strings repre-
senting dates.  It can do the following:

(1) Interpret an (almost) arbitrary date string and break it down into
    year, month, day, hour, minute, second, time zone, day of the week,
    and UNIX internal time (seconds since 1970).

(2) Compute the day of the week and UNIX internal time corresponding to
    a year/month/day/hour/minute/second/zone combination.

(3) Compute the year/month/day/hour/minute/second/zone/day-of-the-week
    combination corresponding to a UNIX internal time.

(4) Generate a character string corresponding to a year/month/day/hour/
    minute/second/zone combination.  Routines exist for creating strings
    in either RFC822 (ARPANET mail) or UUCP mail formats.

The date parser accepts a superset of RFC822, UUCP, USENET, and UNIX
("date" command) formats.  Numerous time zone abbreviations -- including
many used in various parts of the world but not acknowledged in RFC822
-- are understood.  The date parser is NOT suitable for applications
which require strict conformance with RFC822 and need to know whether a
given date string follows RFC822 exactly.  RFC822-format date strings
generated by this package, however, do conform strictly to RFC822; non-
RFC822 time zone abbreviations which might have been used on input are
replaced by numeric offsets on output.

The date parser was written using YACC.  However, it should be possible
to use these routines in programs which already use LEX and/or YACC for
other purposes, since all the external symbols beginning with "_yy" have
been renamed to begin with "_date_yy" instead.

This code was written and tested in a 4.1BSD environment.  Some mods may
be necessary to make it run on other UNIX systems; in particular, people
using AT&T System V and other systems which restrict the length of
external symbols may encounter some problems with long variable and rou-
tine names.

This package contains a copyright notice, as follows:

		Copyright (c) 1984 by Richard B. Wales

The author hereby grants permission to use or redistribute this package
freely and without charge, subject to the following restrictions:

(1) The copyright notice must be retained in all copies of the source.

(2) Any changes made to the source must be clearly documented (such as
    by #ifdef's or by use of a source-code control system such as RCS or
    SCCS), so that the original version of the source as distributed by
    the author can be reconstructed if necessary and distinguished from
    modifications made by others.

The author is interested in any comments, bug reports, etc., concerning
this package, and will try to help out with problems as time permits.
However, since this package is being made available without charge, the
author and his employer disclaim any responsibility, obligation, or com-
mitment to supply bug fixes or enhancements to this package, to adapt it
to run under any particular computer system, to supply consulting
assistance in its use, or to support it in any other manner whatsoever.
The author and his employer specifically and expressly disclaim any lia-
bility whatsoever for incidental or consequential damages which might
arise out of the use of this package.

    Rich Wales
    UCLA Computer Science Department
    3531 Boelter Hall // Los Angeles, CA 90024 // (213) 825-5683
    ARPA:  wales@UCLA-LOCUS.ARPA
    UUCP:  ...!{cepu,ihnp4,trwspp,ucbvax}!ucla-cs!wales
