Have a look at this venerable code which I think was originally in INN and trn... http://ftp.netbsd.org/pub/NetBSD/NetBSD-current/src/lib/libutil/parsedate.y Tony. -- f.anthony.n.finch <dot@dotat.at> http://dotat.at/ Viking: Southwest 4 or 5, increasing 6 to gale 8. Moderate or rough. Rain and drizzle. Moderate, occasionally poor.