U.S. DST reminder
Robert Eden <[email protected]> Mon, 28 Mar 2005 12:39:00 -0800 (PST)
| Newsgroups | gmane.comp.tv.xmltv.announce |
|---|---|
| Message-ID | <20050328203900.72853.qmail__4008.19366700507$1112042511$gmane$org@web50606.mail.yahoo.com> |
This coming Sunday, those of us in the U.S. switch to Daylight Savings
Time.
This is a reminder that tv_grab_na_dd *DOES NOT* use "timezones" (CST,
CDT, etc) but "time offsets" which are not effected by DST.
If you ask tv_grab_na_dd for -0500 time offset right now, that's what
you'll get next week. It's up to the final application to report the
data in a local timezone (which will change)
If your application depends on tv_grab_na_dd's time offset feature,
you'll have to manually make the change for DST.
You can probably deal with Sunday doing something like this
_dd --config-file STD.dat --offset 0 --days 6 --output STD.XML
_dd --config-file DST.dat --offset 6 --days 1 --output DST.XML
tv_cat STD.XML DST.XML >guide.xml
Of course the offsets and days change each day, and the time offset in
DST.dat is +100 from STD.dat.
btw.. last fall I changed tv_check to handle the DST switch, it works!
:)
Robert
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click