[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: library/2215: strptime() problems



The following reply was made to PR library/2215; it has been noted by GNATS.

From: Niclas =?ISO-8859-1?Q?S=F6derg=E5rd?= <nickus@mpi-cbg.de>
To: Artur Grabowski <art@blahonga.org>
Cc: gnats@openbsd.org
Subject: Re: library/2215: strptime() problems
Date: 29 Nov 2001 10:15:34 +0100

 On Thu, 2001-11-29 at 00:55, Artur Grabowski wrote:
 
 But the same string works with strptime() on both Solaris and Linux. I
 don't know if there is a standard for strptime() but if there is
 shouldn't the programs work the same. Or is strptime() highly platform
 specific and I should avoid it?
 
 Nickus
 
 > nickus@mpi-cbg.de writes:
 > 
 > >         strptime() can't handle the string %Y%m%d%H%M%S even though
 > >         the input string is correct.
 > 
 > I quote from the man-page:
 > "There must be whitespace or other non-alphanumeric characters between any
 >  two conversion specifications."
 > 
 > The input is not correct.
 > 
 > //art