
________________________________ From: Markus Raab <usenet@markus-raab.org> To: boost@lists.boost.org Sent: Friday, November 9, 2012 7:57 AM Subject: Re: [boost] [datetime] IANA Time Zone Database
Hi!
Artyom Beilis wrote:
You can use Boost.Locale that is compiled with ICU backend.
ICU supports Time Zone database and you can specify the timezone by its name, parse time or create
date_time object and get POSIX (UTC) time form it.
On POSIX systems with tzdata installed Boost.Locale could also have this feature without ICU. Any plans to do this?
Currently there is no API that allows to to get TZ offset for specific date for specific time zone. The OS API that provides TZ handing is limited and assumes global TZ. The only way I can see, and it is probably simpler way is to use Olson database directly and implement it withing Boost.Locale.
best regards Markus Raab
on a x86_64 _\_v |
Regards, Artyom Beilis -------------- CppCMS - C++ Web Framework: http://cppcms.com/ CppDB - C++ SQL Connectivity: http://cppcms.com/sql/cppdb/