Timestr - Convert between the UTC seconds and a time string.

Access counter


NAME

Timestr - Convert between the UTC seconds and a time string.

$Id: Timestr.pm,v 1.1 2002/04/10 15:16:35 T.Shigetome Exp $


SYNOPSIS

        use     Timestr;
        print   LocalToGmtDate();
        use     Timestr;
        ($sec,$min,$hour,$mday,$mon,$year,$wday) = AnalyzeDate("Mon, 01 Apr 2002 12:34:56 GMT");


DESCRIPTION

Convert between the UTC seconds and a time string.

METHOD

GetTimeStr($ltime)
Convert a time string that formated along ASCII C's from local time.

LocalToGmtDate($time)
Convert a time string that formated along RFC1123 from local time.

AnalyzeDate($time_string)
Covert time as returned to a 7-element list from a time string. Typically used as follows:
        ($sec,$min,$hour,$mday,$mon,$year,$wday) = AnalyzeDate("Mon, 01 Apr 2002 12:34:56 GMT");

GetGmtStr($sec,$min,$hour,$mday,$mon,$year,$wday)
Convert a time string that formatted along RFC1123 from result of gmtime function.


AUTHOR

Tetsuya Shigetome, <t_shigetome@muf.biglobe.ne.jp>.


HISTORY

$Revision: 1.1 $
$Log: Timestr.pm,v $ Revision 1.1 2002/04/10 15:16:35 T.Shigetome First release as Perl module version.

 Timestr - Convert between the UTC seconds and a time string.