* [ECOS] mktime and time zone offsets
@ 2003-10-07 17:01 Savin Zlobec
0 siblings, 0 replies; only message in thread
From: Savin Zlobec @ 2003-10-07 17:01 UTC (permalink / raw)
To: ecos-discuss
Hello,
if I understand correctly how date and time is handled under eCos,
than it is entirely up to the application to specify STD and DST zone
offsets and switch to/from DST with cyg_libc_time_setdst.
Is this correct?
If it is, than what is wrong with simple time adjustment made
according to tm_isdst flag in mktime - the code is commented out.
The following test will fail with the current implementation
of mktime if zone offsets are set.
time0 = time(NULL);
lt = localtime(&time0);
time1 = mktime(lt);
if (time0 != time1) FAIL();
savin
____________________
http://www.email.si/
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2003-10-07 17:01 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-10-07 17:01 [ECOS] mktime and time zone offsets Savin Zlobec
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).