![]() |
![]()
| ![]() |
![]()
NAMEAPR::Date - Perl API for APR date manipulating functions Synopsisuse APR::Date (); # parse HTTP-complient date string $date_string = 'Sun, 06 Nov 1994 08:49:37 GMT'; $date_parsed = APR::Date::parse_http($date_string); # parse RFC822-complient date string $date_string = 'Sun, 6 Nov 94 8:49:37 GMT'; $date_parsed = APR::Date::parse_rfc($date_string); Description"APR::Socket" provides the Perl interface to APR date manipulating functions. API"APR::Date" provides the following functions and/or methods: "parse_http"Parse HTTP date strings $date_parsed = parse_http($date_string);
Remember to divide the return value by 1_000_000 if you need it in seconds. "parse_rfc"Parse a string resembling an RFC 822 date. It's meant to be lenient in its parsing of dates. Hence, this will parse a wider range of dates than parse_http(). $date_parsed = parse_rfc($date_string);
Remember to divide the return value by 1_000_000 if you need it in seconds. See Alsomod_perl 2.0 documentation. Copyrightmod_perl 2.0 and its core modules are copyrighted under The Apache Software License, Version 2.0. AuthorsThe mod_perl development team and numerous contributors.
|