home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 2000 May
/
Chip_2000-05_cd1.bin
/
zkuste
/
Perl
/
ActivePerl-5.6.0.613.msi
/
䆊䌷䈹䈙䏵-䞅䞆䞀㡆䞃䄦䠥
/
_b488083e9fa47e934a5ffccde1b06f7e
< prev
next >
Wrap
Text File
|
2000-03-23
|
3KB
|
78 lines
<HTML>
<HEAD>
<TITLE>Time::Zone -- miscellaneous timezone manipulations routines</TITLE>
<LINK REL="stylesheet" HREF="../../../Active.css" TYPE="text/css">
<LINK REV="made" HREF="mailto:">
</HEAD>
<BODY>
<TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0 WIDTH=100%>
<TR><TD CLASS=block VALIGN=MIDDLE WIDTH=100% BGCOLOR="#cccccc">
<STRONG><P CLASS=block> Time::Zone -- miscellaneous timezone manipulations routines</P></STRONG>
</TD></TR>
</TABLE>
<A NAME="__index__"></A>
<!-- INDEX BEGIN -->
<UL>
<LI><A HREF="#name">NAME</A></LI><LI><A HREF="#supportedplatforms">SUPPORTED PLATFORMS</A></LI>
<LI><A HREF="#synopsis">SYNOPSIS</A></LI>
<LI><A HREF="#description">DESCRIPTION</A></LI>
<LI><A HREF="#authors">AUTHORS</A></LI>
</UL>
<!-- INDEX END -->
<HR>
<P>
<H1><A NAME="name">NAME</A></H1>
<P>Time::Zone -- miscellaneous timezone manipulations routines</P>
<P>
<HR>
<H1><A NAME="supportedplatforms">SUPPORTED PLATFORMS</A></H1>
<UL>
<LI>Linux</LI>
<LI>Solaris</LI>
<LI>Windows</LI>
</UL>
<HR>
<H1><A NAME="synopsis">SYNOPSIS</A></H1>
<PRE>
use Time::Zone;
print tz2zone();
print tz2zone($ENV{'TZ'});
print tz2zone($ENV{'TZ'}, time());
print tz2zone($ENV{'TZ'}, undef, $isdst);
$offset = tz_local_offset();
$offset = tz_offset($TZ);</PRE>
<P>
<HR>
<H1><A NAME="description">DESCRIPTION</A></H1>
<P>This is a collection of miscellaneous timezone manipulation routines.</P>
<P><CODE>tz2zone()</CODE> parses the TZ environment variable and returns a timezone
string suitable for inclusion in <EM>date</EM>-like output. It opionally takes
a timezone string, a time, and a is-dst flag.</P>
<P><CODE>tz_local_offset()</CODE> determins the offset from GMT time in seconds. It
only does the calculation once.</P>
<P><CODE>tz_offset()</CODE> determines the offset from GMT in seconds of a specified
timezone.</P>
<P><CODE>tz_name()</CODE> determines the name of the timezone based on its offset</P>
<P>
<HR>
<H1><A NAME="authors">AUTHORS</A></H1>
<P>Graham Barr <<A HREF="mailto:bodg@pobox.com">bodg@pobox.com</A>>
David Muir Sharnoff <<A HREF="mailto:muir@idiom.com">muir@idiom.com</A>>
Paul Foley <<A HREF="mailto:paul@ascent.com">paul@ascent.com</A>></P>
<TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0 WIDTH=100%>
<TR><TD CLASS=block VALIGN=MIDDLE WIDTH=100% BGCOLOR="#cccccc">
<STRONG><P CLASS=block> Time::Zone -- miscellaneous timezone manipulations routines</P></STRONG>
</TD></TR>
</TABLE>
</BODY>
</HTML>