> For what it is worth, here's NZ's DST adjustments.

Thanks Ian.

> I'm not sure how you store the trip points as either Local Time or if you
> use UTC month, day, hour, & minutes, or if it's minutes since 12:00am Jan 01
> that year, but whichever, it was starting to get ugly just trying to
> work it out, let alone trying to code for it (including allowing for
> leap years, and which years are leap years...)

Right now they're stored in Unix format - seconds since January 1, 1970 
in UTC.  For Europe they'll all be the same since European Summer Time 
starts and ends at 0100 UTC, but for the US, NZ, and most (all?) of the 
others I've looked at, you've got to do what you just did and calculate 
the offset.

> If possible, it might pay to allow the config program to load in the
> DST offset info from a file on the PC somewhere - that way we only
> need to work it out once per unlisted country & post it to the files
> section of the group, instead of each individual having to work it out
> to update it (and potentially get it wrong somewhere).

That's a good point.  It'd be pretty easy to do.

Scott

Reply via email to