Manual Pages for UNIX Darwin command on man APR::Date
MyWebUniversity

Manual Pages for UNIX Darwin command on man APR::Date

apachemodperla-p1a0c1h.e1~m2Uo:sd:emrpoedCrolpn-et1rr0li1-b.2u1.t~0e2.d:2::Pm:eodrdolcpsDe:or:clau-pm2ie.:n0:t.Aa2Pt:Ri::od:noDcast:e:(a3p)i::APR::Date(3)

NAME

APR::Date - Perl API for APR date manipulating functions

SSyynnooppssiiss

use APR::Date ();

# parse HTTP-complient date string

$datestring = 'Sun, 06 Nov 1994 08:49:37 GMT';

$dateparsed = APR::Date::parsehttp($datestring);

# parse RFC822-complient date string

$datestring = 'Sun, 6 Nov 94 8:49:37 GMT';

$dateparsed = APR::Date::parserfc($datestring);

DDeessccrriippttiioonn "APR::Socket" provides the Perl interface to APR date manipulating functions. AAPPII

"APR::Date" provides the following functions and/or methods:

""ppaarrsseehhttttpp"" Parse HTTP date strings

$dateparsed = parsehttp($datestring);

arg1: $datestring ( string )

The date string can be in one of the following formats: Sun, 06 Nov 1994 08:49:37 GMT ; RFC 822, updated by RFC 1123

Sunday, 06-Nov-94 08:49:37 GMT ; RFC 850, obsoleted by RFC 1036

Sun Nov 6 08:49:37 1994 ; ANSI C's asctime() format refer to RFC2616 for the details (GMT is assumed, regardless of the used timezone).

ret: $dateparsed ( number )

the number of microseconds since 1 Jan 1970 GMT, or 0 if out of range or if the date is invalid. since: 2.0.00 Remember to divide the return value by 1000000 if you need it in seconds. ""ppaarrsseerrffcc"" 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 "parsehttp()".

$dateparsed = parserfc($datestring);

arg1: $datestring ( string )

The date string can be in one of the following formats: Sun, 06 Nov 1994 08:49:37 GMT ; RFC 822, updated by RFC 1123

Sunday, 06-Nov-94 08:49:37 GMT ; RFC 850, obsoleted by RFC 1036

Sun Nov 6 08:49:37 1994 ; ANSI C's asctime() format Sun, 6 Nov 1994 08:49:37 GMT ; RFC 822, updated by RFC 1123 Sun, 06 Nov 94 08:49:37 GMT ; RFC 822 Sun, 6 Nov 94 08:49:37 GMT ; RFC 822 Sun, 06 Nov 94 08:49 GMT ; Unknown [drtr\@ast.cam.ac.uk] Sun, 6 Nov 94 08:49 GMT ; Unknown [drtr\@ast.cam.ac.uk] Sun, 06 Nov 94 8:49:37 GMT ; Unknown [Elm 70.85] Sun, 6 Nov 94 8:49:37 GMT ; Unknown [Elm 70.85]

ret: $dateparsed ( number )

the number of microseconds since 1 Jan 1970 GMT, or 0 if out of range or if the date is invalid. since: 2.0.00 Remember to divide the return value by 1000000 if you need it in seconds. SSeeee AAllssoo modperl 2.0 documentation. CCooppyyrriigghhtt modperl 2.0 and its core modules are copyrighted under The Apache Software License, Version 2.0. AAuutthhoorrss The modperl development team and numerous contributors.

perl v5.8.8 apachemodperl-101.210~025:-:1m0o-d20perl-2.0.2::docs::api::APR::Date(3)




Contact us      |      About us      |      Term of use      |       Copyright © 2000-2019 MyWebUniversity.com ™