1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Class Poco::Timezone</title>
<meta http-equiv="content-type" content="text/html; charset=utf-8"/>
<meta name="author" content="Applied Informatics Software Engineering GmbH and Contributors"/>
<meta name="publisher" content="Applied Informatics Software Engineering GmbH and Contributors"/>
<meta name="copyright" content="Copyright (c) 2009, Applied Informatics Software Engineering GmbH and Contributors"/>
<meta name="language" content="en"/>
<meta name="date" content="2009-11-24"/>
<meta name="generator" content="PocoDoc"/>
<link rel="stylesheet" href="css/styles.css" type="text/css"/>
</head>
<body bgcolor="#ffffff" leftmargin="0" topmargin="0">
<div class="header">
<h1 class="namespace"><a href="Poco.html" class="namespace">Poco</a></h1>
<h1 class="symbol">class Timezone</h1>
</div>
<div class="body">
<p>
<b>Library:</b> Foundation<br />
<b>Package:</b> DateTime<br />
<b>Header:</b> Poco/Timezone.h</p>
<h2>Description</h2>
<div class="description">
<p>This class provides information about the current timezone. </p>
</div>
<h2>Member Summary</h2>
<p><b>Member Functions: </b><a href="Poco.Timezone.html#11204" title="Poco::Timezone::dst()">dst</a>, <a href="Poco.Timezone.html#11210" title="Poco::Timezone::dstName()">dstName</a>, <a href="Poco.Timezone.html#11205" title="Poco::Timezone::isDst()">isDst</a>, <a href="Poco.Timezone.html#11208" title="Poco::Timezone::name()">name</a>, <a href="Poco.Timezone.html#11209" title="Poco::Timezone::standardName()">standardName</a>, <a href="Poco.Timezone.html#11207" title="Poco::Timezone::tzd()">tzd</a>, <a href="Poco.Timezone.html#11203" title="Poco::Timezone::utcOffset()">utcOffset</a></p>
<h2>Member Functions</h2>
<h3><a name="11204">dst</a> <img src="images/static.gif" alt="static" title="static" style="vertical-align:baseline;" border="0" /> </h3>
<p class="decl">static int dst();</p>
<div class="description">
<p>Returns the daylight saving time offset in seconds if daylight saving time is in use. </p>
<pre>local time = UTC + utcOffset() + dst().
</pre>
</div>
<h3><a name="11210">dstName</a> <img src="images/static.gif" alt="static" title="static" style="vertical-align:baseline;" border="0" /> </h3>
<p class="decl">static std::string dstName();</p>
<div class="description">
<p>Returns the timezone name if daylight saving time is in effect. </p>
</div>
<h3><a name="11205">isDst</a> <img src="images/static.gif" alt="static" title="static" style="vertical-align:baseline;" border="0" /> </h3>
<p class="decl">static bool isDst(<br /> const <a href="Poco.Timestamp.html" title="class Poco::Timestamp">Timestamp</a> & timestamp<br />);</p>
<div class="description">
<p>Returns true if daylight saving time is in effect for the given time. Depending on the operating system platform this might only work reliably for certain date ranges, as the C library's localtime() function is used. </p>
</div>
<h3><a name="11208">name</a> <img src="images/static.gif" alt="static" title="static" style="vertical-align:baseline;" border="0" /> </h3>
<p class="decl">static std::string name();</p>
<div class="description">
<p>Returns the timezone name currently in effect. </p>
</div>
<h3><a name="11209">standardName</a> <img src="images/static.gif" alt="static" title="static" style="vertical-align:baseline;" border="0" /> </h3>
<p class="decl">static std::string standardName();</p>
<div class="description">
<p>Returns the timezone name if not daylight saving time is in effect. </p>
</div>
<h3><a name="11207">tzd</a> <img src="images/static.gif" alt="static" title="static" style="vertical-align:baseline;" border="0" /> </h3>
<p class="decl">static int tzd();</p>
<div class="description">
<p>Returns the time zone differential for the current timezone. The timezone differential is computed as <a href="Poco.Timezone.html#11203" title="Poco::Timezone::utcOffset()">utcOffset</a>() + <a href="Poco.Timezone.html#11204" title="Poco::Timezone::dst()">dst</a>() and is expressed in seconds. </p>
</div>
<h3><a name="11203">utcOffset</a> <img src="images/static.gif" alt="static" title="static" style="vertical-align:baseline;" border="0" /> </h3>
<p class="decl">static int utcOffset();</p>
<div class="description">
<p>Returns the offset of local time to UTC, in seconds. </p>
<pre>local time = UTC + utcOffset() + dst().
</pre>
</div>
<p class="footer">POCO C++ Libraries 1.3.6-all<br />
Copyright © 2009, <a href="http://pocoproject.org/" target="_blank">Applied Informatics Software Engineering GmbH and Contributors</a></p>
</div>
</body>
</html>
|