httpd-modules-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "William A. Rowe, Jr." <wr...@rowe-clan.net>
Subject Re: Converting apr_finfo_t.mtime into a Unix timestamp
Date Mon, 24 Mar 2008 17:54:22 GMT
Sam Carleton wrote:
> On Sun, Mar 23, 2008 at 8:24 PM, Joe Lewis <joe@joe-lewis.com> wrote:
>>
>>  What I found is that there is an apr_time_ansi_put converts a time_t to
>>  an apr_time_t, but the only thing that may convert the apr_time_t into
>>  the number of seconds since Jan 1st 1970 is apr_time_sec(apr_time_t) .
> 
> Thank you.  I actually do want the Unix timestamp format. (Which is
> the Jan 1st 1970, isn't it?)  In the PHP code, it looks at dates based
> on the unix timestamp format to determine which is the latest and then
> converts it to a string.

Joe is correct; that's the function you wanted.  The apr epoch matches the
unix epoch, only with a higher microsecond resolution.

Mime
View raw message