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 >
Text File  |  2000-03-23  |  3KB  |  78 lines

  1.  
  2. <HTML>
  3. <HEAD>
  4. <TITLE>Time::Zone -- miscellaneous timezone manipulations routines</TITLE>
  5. <LINK REL="stylesheet" HREF="../../../Active.css" TYPE="text/css">
  6. <LINK REV="made" HREF="mailto:">
  7. </HEAD>
  8.  
  9. <BODY>
  10. <TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0 WIDTH=100%>
  11. <TR><TD CLASS=block VALIGN=MIDDLE WIDTH=100% BGCOLOR="#cccccc">
  12. <STRONG><P CLASS=block> Time::Zone -- miscellaneous timezone manipulations routines</P></STRONG>
  13. </TD></TR>
  14. </TABLE>
  15.  
  16. <A NAME="__index__"></A>
  17. <!-- INDEX BEGIN -->
  18.  
  19. <UL>
  20.  
  21.     <LI><A HREF="#name">NAME</A></LI><LI><A HREF="#supportedplatforms">SUPPORTED PLATFORMS</A></LI>
  22.  
  23.     <LI><A HREF="#synopsis">SYNOPSIS</A></LI>
  24.     <LI><A HREF="#description">DESCRIPTION</A></LI>
  25.     <LI><A HREF="#authors">AUTHORS</A></LI>
  26. </UL>
  27. <!-- INDEX END -->
  28.  
  29. <HR>
  30. <P>
  31. <H1><A NAME="name">NAME</A></H1>
  32. <P>Time::Zone -- miscellaneous timezone manipulations routines</P>
  33. <P>
  34. <HR>
  35. <H1><A NAME="supportedplatforms">SUPPORTED PLATFORMS</A></H1>
  36. <UL>
  37. <LI>Linux</LI>
  38. <LI>Solaris</LI>
  39. <LI>Windows</LI>
  40. </UL>
  41. <HR>
  42. <H1><A NAME="synopsis">SYNOPSIS</A></H1>
  43. <PRE>
  44.         use Time::Zone;
  45.         print tz2zone();
  46.         print tz2zone($ENV{'TZ'});
  47.         print tz2zone($ENV{'TZ'}, time());
  48.         print tz2zone($ENV{'TZ'}, undef, $isdst);
  49.         $offset = tz_local_offset();
  50.         $offset = tz_offset($TZ);</PRE>
  51. <P>
  52. <HR>
  53. <H1><A NAME="description">DESCRIPTION</A></H1>
  54. <P>This is a collection of miscellaneous timezone manipulation routines.</P>
  55. <P><CODE>tz2zone()</CODE> parses the TZ environment variable and returns a timezone
  56. string suitable for inclusion in <EM>date</EM>-like output.  It opionally takes
  57. a timezone string, a time, and a is-dst flag.</P>
  58. <P><CODE>tz_local_offset()</CODE> determins the offset from GMT time in seconds.  It
  59. only does the calculation once.</P>
  60. <P><CODE>tz_offset()</CODE> determines the offset from GMT in seconds of a specified
  61. timezone.</P>
  62. <P><CODE>tz_name()</CODE> determines the name of the timezone based on its offset</P>
  63. <P>
  64. <HR>
  65. <H1><A NAME="authors">AUTHORS</A></H1>
  66. <P>Graham Barr <<A HREF="mailto:bodg@pobox.com">bodg@pobox.com</A>>
  67. David Muir Sharnoff <<A HREF="mailto:muir@idiom.com">muir@idiom.com</A>>
  68. Paul Foley <<A HREF="mailto:paul@ascent.com">paul@ascent.com</A>></P>
  69. <TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0 WIDTH=100%>
  70. <TR><TD CLASS=block VALIGN=MIDDLE WIDTH=100% BGCOLOR="#cccccc">
  71. <STRONG><P CLASS=block> Time::Zone -- miscellaneous timezone manipulations routines</P></STRONG>
  72. </TD></TR>
  73. </TABLE>
  74.  
  75. </BODY>
  76.  
  77. </HTML>
  78.