Ray, First off, I haven't ever tried compiling or running DateUtility on UD so it's probable it won't work there without some tweaks.
Second, DateUtility doesn't 'rely' on the equate - that's only a 'panic' fallback position the program can use if it can't acquire the current local timezone from the OS. The program first tries to get the posix environment variable for timezone from the environment settings in *nix or derived from the registry in Windows. To answer to your question - storing the date/time as unix epoch ((milli)seconds from 1970-01-01T00:00Z) is probably the most convenient method of storing a pure timestamp, Combine that with locality information of an event and you can re-infer the local time the event occurred. For historical times in certain locales (eg Australia where the DLS start/end dates vary in every state just about every third year since the 1800s when it was first trialled and less so now in the USA where they have (or will) changed the start/end dates) you will need to reference a timezone database to ensure that you have an accurate DLS offset for any particular date. See the tz database - http://www.twinsun.com/tz/tz-link.htm Regards, Stuart. >-----Original Message----- >I know about the PickWiki DateUtility, but it is definitely overkill >(which is not necessarily a bad thing) and it relies on a time-zone >EQUate and I'd prefer something that was "automatic". ********************************************************************** This email message and any files transmitted with it are confidential and intended solely for the use of addressed recipient(s). If you have received this communication in error, please reply to this e-mail to notify the sender of its incorrect delivery and then delete it and your reply. It is your responsibility to check this email and any attachments for viruses and defects before opening or sending them on. Spotless collects information about you to provide and market our services. For information about use, disclosure and access, see our privacy policy at http://www.spotless.com.au Please consider our environment before printing this email. ********************************************************************** ------- u2-users mailing list [email protected] To unsubscribe please visit http://listserver.u2ug.org/
