This is the mail archive of the newlib@sourceware.org mailing list for the newlib project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: mktime()


Hi
   Thought you might like this? :0 Figured I'd keep within thread.
Test case not supplied, just logic:
Given Jan 1st in the British Isles, UTC0, and they decide to go DST on Jan 1st at 2AM of 1 hour, the POSIX standard format for that is ",J1/2".
From tzset()
	__tzrule[i].ch = J;
	__tzrule[i].d = 1;
From __tzcalc_limits
	days = 0 + 1 + 0;
and
	change = 1 * 86400 + 7200 + 0;
instead of 7200.

  Then again I might have a loose light bulb?

Steve

Attachment: mktm_r091311.patch
Description: Binary data


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]