From: "J." <j.reynders@xs4all.nl>
To: linux-c-programming@vger.kernel.org
Subject: Re: convert time to UTC, THNKX ... solved ...
Date: Mon, 6 Oct 2003 23:02:52 +0200 (CEST) [thread overview]
Message-ID: <Pine.LNX.4.21.0310062300390.29925-100000@hestia> (raw)
In-Reply-To: <20031003222830.GA6059@lsd.di.uminho.pt>
On Fri, 3 Oct 2003, Luciano Miguel Ferreira Rocha wrote:
> On Wed, Oct 01, 2003 at 09:40:44PM +0200, J. wrote:
> > if(strptime(tstr, "%a %b %d %T %Ey", ×truct) == 0)
> ^^^^
> You should use %Y, %y or %EY. For %Ey, the number is an offset from %EC,
> that in my current locale is 1900.
>
> So the year is ending up in 3903, beyond the 32/31 bit limit for the
> number of seconds from Jan 1 1970.
>
> Regards,
> Luciano Rocha
Ah great it works ... ! As you suggested.
Merci
J.
--
AonkyKong
prev parent reply other threads:[~2003-10-06 21:02 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-09-26 15:43 undefined reference to `_fxstat' rgomez
2003-10-01 19:40 ` convert time to UTC, strptime() returns -1 ? J.
2003-10-03 22:28 ` Luciano Miguel Ferreira Rocha
2003-10-06 21:02 ` J. [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=Pine.LNX.4.21.0310062300390.29925-100000@hestia \
--to=j.reynders@xs4all.nl \
--cc=linux-c-programming@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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 NNTP newsgroup(s).