Parsing ORACLE format dates

From: Andy Caiger -RESCU <caiger_at_resa.afrc.ac.uk>
Date: Wed, 2 Jun 1993 15:35:17 GMT
Message-ID: <CAIGER.93Jun2163517_at_ress1.afrc.ac.uk>


Hi there, does anyone know of public domain code for a parser for dates given in a specified ORACLE format. Basically I'm trying to check the validity of date strings without having to generate an SQL statement like `SELECT TO_DATE(string,format) FROM dual;' and checking for errors. I don't want to have to access ORACLE at all (it's a last resort I suppose).

So has anyone written such a parser in C or YACC ? I'd be very grateful for any pointers to it.

Andy

--

-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Andy Caiger Rothamsted Experimental Station Harpenden, Herts. AL5 2JQ. UK e-mail: caiger_at_resa.afrc.ac.uk +44 (0)582 763133 x2418
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Received on Wed Jun 02 1993 - 17:35:17 CEST

Original text of this message