This is the mail archive of the
libc-help@sourceware.org
mailing list for the glibc project.
Re: Questions about strptime()/strftime()
- From: "Carlos O'Donell" <carlos at systemhalted dot org>
- To: "Richard Harvey Chapman" <hchapman at 3gfp dot com>
- Cc: libc-help at sourceware dot org
- Date: Sat, 21 Jun 2008 14:22:19 -0400
- Subject: Re: Questions about strptime()/strftime()
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:sender :to:subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references :x-google-sender-auth; bh=pIlPBt2mNv77cDYbapUq2f70atlHWDjkMsenyzOhdew=; b=EmKYzI21bAO9aqq4kK9wYpwyHjD7T9Ms3mieudElEcCnZqy9KwXcNua4f9YisRfmE5 q+Bc9R852W/eROqf3gAzIAxVzlAJHIx+Z4I0aRrxZv3xtKfvlBsMYkSCWq3c97VeTi/6 3hzv3uGMzHxHXIqLRVoyWxQRimesmLfliJNKs=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:sender:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references:x-google-sender-auth; b=gkRyjsiFEtzVkj1nlPuoZghIqrAH2nljcRn+NkmLQ6RGlHcfro3H8zePLHmvVQ3txF W+ZiOAPqyC/D6O4OnZiQDIWDMONu/5mLlj3xEWAvyg9c3p3J3aA7r2bVjHyzXF2PpVcI enAxjHXXK22/XIqPudqk4xapDvydSMzBV6VmY=
- References: <485D4113.9050107@3gfp.com>
On Sat, Jun 21, 2008 at 1:57 PM, Richard Harvey Chapman
<hchapman@3gfp.com> wrote:
> result = strptime(str, format, &tt2_r);
This returns "Illegal seek" because "%F", "%z", and "%Z" are not valid
formats which strptime can convert.
1. Please see http://www.opengroup.org/onlinepubs/009695399/functions/strptime.html
for the full list.
2. Remember to check return values.
Cheers,
Carlos.