[Israel.pm] time of pc

Meron.Cohen at ecitele.com Meron.Cohen at ecitele.com
Thu Jun 22 00:04:26 PDT 2006


If you don't have the power to read here is a synopsis:

gmtime(EXPR) 
gmtime EXPR 
gmtime 
Converts a time as returned by the time function to a 9-element array with 
the time analyzed for the Greenwich timezone. Typically used as follows: 
($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst)
                                            = gmtime(time);

All array elements are numeric, and come straight out of a `struct tm'. In 
particular this means that $mon has the range `0..11' and $wday has the 
range `0..6'. If EXPR is omitted, does `gmtime(time)'. 
localtime(EXPR) 
localtime EXPR 
localtime 
Converts a time as returned by the time function to a 9-element array with 
the time analyzed for the local timezone. Typically used as follows: 
($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst)
                                        = localtime(time);

All array elements are numeric, and come straight out of a `struct tm'. In 
particular this means that $mon has the range `0..11' and $wday has the 
range `0..6'. If EXPR is omitted, does localtime(time). 
time 
Returns the number of non-leap seconds since 00:00:00 UTC, January 1, 
1970. Suitable for feeding to gmtime() and localtime().

My best regards,
Meron Cohen.

Phone   :   03-9268402.
Mobile  :   052-5402226.



More information about the Perl mailing list