apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeff Trawick <traw...@attglobal.net>
Subject Re: apr_strftime not portable
Date Wed, 17 Jul 2002 19:42:09 GMT
Ryan Morgan <rmorgan@covalent.net> writes:

> apr_strftime calls the platform's native strftime, which differs between
> platforms (solaris and linux for example).  take the following code:
> 
> apr_explode_localtime(&xt, apr_time_now());
> apr_strftime(buf, &retcode, sizeof(buf), "%G", &xt);

so we could document which format strings we support (limit it to
ANSI for portability)

alternatively:

http://www.freebsd.org/cgi/cvsweb.cgi/src/lib/libc/stdtime/strftime.c

-- 
Jeff Trawick | trawick@attglobal.net
Born in Roswell... married an alien...

Mime
View raw message