Hi all, I have two applications; one is a Java application that uses Joda, and stores dates and times, with timezone info, in a database by storing the number of milliseconds since the epoch, and a Joda timezone ID. The other application is written in C++, and reads the timestamp and timezone ID from the database. The C++ application needs to convert the time to the timezone stored in the db.
I'm having trouble coming up with a good approach to take here. The main issue is daylight savings time. It's fairly trivial for me to write a Java program that builds a list of timezone ID's and their associated GMT offsets, and using that list to give the C++ application the info it needs for the conversion, but I have not been able to come up with a good way to support daylight savings time (and also to support the dst-adjusted display names of timezones, e.g. "EST" vs "EDT" for EST5EDT) in the C++ application short of reimplementing all of the logic for every timezone ID by hand -- which is less than ideal. I realize this may be slightly off topic, but it is related to Joda. Apologies if this is the wrong place to ask... but I have not been able to come up with any solutions. Has anybody here ever done anything like this, or does anybody have any ideas about a good way to add Joda timezone ID support to non-Java applications? Ideally I'd like to support most of the Joda timezone IDs (both generic IDs like "EST5EDT" and city IDs like "America/New_York"), but I would be willing to limit the Java application to a representative subset of the IDs if that makes it easier to deal with on the C++ side of things. Any suggestions would be greatly appreciated. Thanks a lot! Jason ------------------------------------------------------------------------------ Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H _______________________________________________ Joda-interest mailing list Joda-interest@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/joda-interest