Date classes copied from the JCommon class library.