Brian Inglis wrote:
On 2018-01-26 06:54, Steve Summit wrote:
Do we know how many programs are using timezone and tm_isdst (and the variable that says "this zone observes DST sometimes", and the other difficult API bits we've been discussing here)?
Github search result counts for some indications: [details omitted]
Interesting. Thanks.
Do we know why they think they have to use them? Is there guidance we can give them to help wean them off them?
Provide internationalized date and time interfaces that don't require changing and reading struct tm fields to do complex date arithmetic... Internationalize tzdb so it can deal with other calendars... Provide interfaces to handle different time scales easily... support time stamps down to at least the attosecond...
All worthy goals, but I was more simply asking: For those programs still using tm_isdst (and similar/related interfaces): what are they using them for, and what can we offer them instead?