[uClinux-dev] DST in force?
Daniel Berenguer
dberenguer at usapiens.com
Fri Mar 16 14:24:32 EST 2007
> Am Donnerstag, den 15.03.2007, 17:32 +0100 schrieb Daniel Berenguer:
> > Hi David, thanks for your reply.
> >
> > I have in fact the inverse problem (not being really a problem). I want
> > users to enter local date/time into a text box without taking into
> > account whether they are in summer time or not. So, anyone could just
> > copy the time from any clock, even if it's been corrected by DST.
> >
> > "date MMDDhhmm[[CC]YY][.ss]" accepts local time without DST correction.
> > For my timezone (CET-1CEST-2,M3.5.0/02:00:00,M10.5.0/03:00:00), Entering
> > this date: 03/26/07 15:00 will result into 03/26/07 16:00 just because
> > the system knows that we're in DST and the time correction must be done.
> >
> > Thanks again,
> >
> > Daniel.
> >
>
> you can use localtime() and related lib functions first to see if DST is
> in effect for a given date.
>
> Regards,
> Erwin
Thanks Erwin, your advice has helped me a lot as I was beginning to
parse the TZ file...
Daniel.
More information about the uClinux-dev
mailing list