man-pages/man3/Time::Zone.3pm.html
2021-03-31 01:06:50 +01:00

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">&nbsp;</A>
<H2>NAME</H2>
Time::Zone -- miscellaneous timezone manipulations routines
<A NAME="lbAC">&nbsp;</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">&nbsp;</A>
<H2>DESCRIPTION</H2>
This is a collection of miscellaneous timezone manipulation routines.
<P>
<TT>&quot;tz2zone()&quot;</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>&quot;tz_local_offset()&quot;</TT> determins the offset from <FONT SIZE="-1">GMT</FONT> time in seconds. It
only does the calculation once.
<P>
<TT>&quot;tz_offset()&quot;</TT> determines the offset from <FONT SIZE="-1">GMT</FONT> in seconds of a specified
timezone.
<P>
<TT>&quot;tz_name()&quot;</TT> determines the name of the timezone based on its offset
<A NAME="lbAE">&nbsp;</A>
<H2>AUTHORS</H2>
Graham Barr &lt;<A HREF="mailto:gbarr@pobox.com">gbarr@pobox.com</A>&gt;
David Muir Sharnoff &lt;<A HREF="mailto:muir@idiom.com">muir@idiom.com</A>&gt;
Paul Foley &lt;<A HREF="mailto:paul@ascent.com">paul@ascent.com</A>&gt;
<P>
<HR>
<A NAME="index">&nbsp;</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>