84 lines
2.1 KiB
HTML
84 lines
2.1 KiB
HTML
|
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
|
<HTML><HEAD><TITLE>Man page of Time::Zone</TITLE>
|
|
</HEAD><BODY>
|
|
<H1>Time::Zone</H1>
|
|
Section: User Contributed Perl Documentation (3pm)<BR>Updated: 2020-03-06<BR><A HREF="#index">Index</A>
|
|
<A HREF="/cgi-bin/man/man2html">Return to Main Contents</A><HR>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<A NAME="lbAB"> </A>
|
|
<H2>NAME</H2>
|
|
|
|
Time::Zone -- miscellaneous timezone manipulations routines
|
|
<A NAME="lbAC"> </A>
|
|
<H2>SYNOPSIS</H2>
|
|
|
|
|
|
|
|
|
|
|
|
<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>
|
|
|
|
|
|
<A NAME="lbAD"> </A>
|
|
<H2>DESCRIPTION</H2>
|
|
|
|
|
|
|
|
This is a collection of miscellaneous timezone manipulation routines.
|
|
<P>
|
|
|
|
<TT>"tz2zone()"</TT> parses the <FONT SIZE="-1">TZ</FONT> environment variable and returns a timezone
|
|
string suitable for inclusion in <B><A HREF="/cgi-bin/man/man2html?1+date">date</A></B>(1)-like output. It opionally takes
|
|
a timezone string, a time, and a is-dst flag.
|
|
<P>
|
|
|
|
<TT>"tz_local_offset()"</TT> determins the offset from <FONT SIZE="-1">GMT</FONT> time in seconds. It
|
|
only does the calculation once.
|
|
<P>
|
|
|
|
<TT>"tz_offset()"</TT> determines the offset from <FONT SIZE="-1">GMT</FONT> in seconds of a specified
|
|
timezone.
|
|
<P>
|
|
|
|
<TT>"tz_name()"</TT> determines the name of the timezone based on its offset
|
|
<A NAME="lbAE"> </A>
|
|
<H2>AUTHORS</H2>
|
|
|
|
|
|
|
|
Graham Barr <<A HREF="mailto:gbarr@pobox.com">gbarr@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>
|
|
|
|
<HR>
|
|
<A NAME="index"> </A><H2>Index</H2>
|
|
<DL>
|
|
<DT id="1"><A HREF="#lbAB">NAME</A><DD>
|
|
<DT id="2"><A HREF="#lbAC">SYNOPSIS</A><DD>
|
|
<DT id="3"><A HREF="#lbAD">DESCRIPTION</A><DD>
|
|
<DT id="4"><A HREF="#lbAE">AUTHORS</A><DD>
|
|
</DL>
|
|
<HR>
|
|
This document was created by
|
|
<A HREF="/cgi-bin/man/man2html">man2html</A>,
|
|
using the manual pages.<BR>
|
|
Time: 00:05:58 GMT, March 31, 2021
|
|
</BODY>
|
|
</HTML>
|