[comp.lang.perl] Date parsing library

jas@ISI.EDU (Jeff Sullivan) (02/01/91)

Has anyone out there written a library that will parse dates in a
variety of forms, without knowing which form it will be ahead of time?

For example, the line may read

DATE: YYMMDD

or, it may be any of the following:

MMDDYY
MMDDYYYY
YYYYMMDD
DD/MM/YY
DD/MM/YYYY
MM/DD/YY
MM/DD/YYYY
MM-DD-YYYY
MM-DD-YY

DD Monthname-or-abbreviation YY

etc.

I'd hate to reinvent the wheel on this, but I'd like to have a general
date parsing facility.  My saving grace is I know the dates can't be
spread across more than one line.

thanks,

jas
--
--------------------------------------------------------------------------
Jeffrey A. Sullivan		| Senior Systems Programmer
jas@venera.isi.edu		| Information Sciences Institute
jas@isi.edu                    	| University of Southern California