timezone.html
来自「qtopiaphone英文帮助,用于初学者和开发人员,初学者可以用来学习,开发人」· HTML 代码 · 共 226 行
HTML
226 行
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><!-- /home/edba/dist/qtopia/main-Sunday/qtopia/src/libraries/qtopia1/timezone.cpp:818 --><html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>TimeZone Class</title><style type="text/css"><!--h3.fn,span.fn { margin-left: 1cm; text-indent: -1cm; }a:link { color: #004faf; text-decoration: none }a:visited { color: #672967; text-decoration: none }body { background: #ffffff; color: black; }--></style></head><body><table border="0" cellpadding="0" cellspacing="0" width="100%"><tr><td width="200" align="left" valign="top"><a href="index.html"><img height="27" width="472" src="dochead.png" border="0"></a><br><font face="Arial,Helvetica,Geneva,Swiss,SunSans-Regular" align="center" size=32>Qtopia</font> <a href="index.html">Home</a> - <a href="qtopiaclasses.html">Classes</a> - <a href="qtopiaannotated.html">Annotated</a> - <a href="qtopiafunctions.html">Functions</a> - <a href="qtindex.html">Qt Embedded</a></td><td align="right" valign="top"> <table border="0" cellpadding="0" cellspacing="0" width="137"> <tr> <td><a href="http://www.trolltech.com/company/about/trolls.html"><img height="100" width="100" src="face.png" border="0"></a></td> <td><img height="100" width="100" src="qtlogo.png" align="top" border="0"></td> </tr> </table></td></tr></table><h1 align=center>TimeZone Class Reference</h1><p>The TimeZone class provides access to time zone data.<a href="#details">More...</a><p><tt>#include <<a href="timezone-h.html">timezone.h</a>></tt><p><a href="timezone-members.html">List of all member functions.</a><h2>Public Members</h2><ul><li><div class=fn><a href="#TimeZone"><b>TimeZone</b></a> ()</div></li><li><div class=fn><a href="#TimeZone-2"><b>TimeZone</b></a> ( const char * locId )</div></li><li><div class=fn><a href="#TimeZone-3"><b>TimeZone</b></a> ( const TimeZone & copyFrom )</div></li><li><div class=fn><a href="#~TimeZone"><b>~TimeZone</b></a> ()</div></li><li><div class=fn>bool <a href="#isValid"><b>isValid</b></a> () const</div></li><li><div class=fn>void <a href="#setId"><b>setId</b></a> ( const char * id )</div></li><li><div class=fn>TimeZone & <a href="#operator-eq"><b>operator=</b></a> ( const TimeZone & from )</div></li><li><div class=fn>bool <a href="#operator-eq-eq"><b>operator==</b></a> ( const TimeZone & c ) const</div></li><li><div class=fn>bool <a href="#operator!-eq"><b>operator!=</b></a> ( const TimeZone & c ) const</div></li><li><div class=fn>uint <a href="#toTime_t"><b>toTime_t</b></a> ( const QDateTime & thisT ) const</div></li><li><div class=fn>QDateTime <a href="#toUtc"><b>toUtc</b></a> ( const QDateTime & thisT ) const</div></li><li><div class=fn>QDateTime <a href="#fromUtc"><b>fromUtc</b></a> ( const QDateTime & utc ) const</div></li><li><div class=fn>QDateTime <a href="#toCurrent"><b>toCurrent</b></a> ( const QDateTime & thisT ) const</div></li><li><div class=fn>QDateTime <a href="#fromCurrent"><b>fromCurrent</b></a> ( const QDateTime & curT ) const</div></li><li><div class=fn>QDateTime <a href="#convert"><b>convert</b></a> ( const QDateTime & dt, const TimeZone & dtTz ) const</div></li><li><div class=fn>int <a href="#lat"><b>lat</b></a> () const</div></li><li><div class=fn>int <a href="#lon"><b>lon</b></a> () const</div></li><li><div class=fn>QCString <a href="#dstAbbreviation"><b>dstAbbreviation</b></a> () const</div></li><li><div class=fn>QCString <a href="#standardAbbreviation"><b>standardAbbreviation</b></a> () const</div></li><li><div class=fn>QCString <a href="#latStr"><b>latStr</b></a> () const</div></li><li><div class=fn>QCString <a href="#lonStr"><b>lonStr</b></a> () const</div></li><li><div class=fn>QString <a href="#description"><b>description</b></a> () const</div></li><li><div class=fn>QString <a href="#area"><b>area</b></a> () const</div></li><li><div class=fn>QString <a href="#city"><b>city</b></a> () const</div></li><li><div class=fn>QCString <a href="#countryCode"><b>countryCode</b></a> ()</div></li><li><div class=fn>QCString <a href="#id"><b>id</b></a> () const</div></li></ul><h2>Static Public Members</h2><ul><li><div class=fn>TimeZone <a href="#current"><b>current</b></a> ()</div></li><li><div class=fn>TimeZone <a href="#utc"><b>utc</b></a> ()</div></li><li><div class=fn>QDateTime <a href="#utcDateTime"><b>utcDateTime</b></a> ()</div></li><li><div class=fn>QStrList <a href="#ids"><b>ids</b></a> ()</div></li></ul><hr><a name="details"></a><h2>Detailed Description</h2>The TimeZone class provides access to time zone data.<p> TimeZone provides access to timezone data and conversion betweentimes in different time zones and formats.<p> First availability: Qtopia 1.6<p> <p>See also <a href="qtopiaemb.html">Qtopia Classes</a>.<hr><h2>Member Function Documentation</h2><h3 class=fn><a name="TimeZone"></a>TimeZone::TimeZone ()</h3>Construct an invalid time zone.<h3 class=fn><a name="TimeZone-2"></a>TimeZone::TimeZone ( const char * locId )</h3>Construct a TimeZone for location <em>locId</em>.<h3 class=fn><a name="TimeZone-3"></a>TimeZone::TimeZone ( const <a href="timezone.html">TimeZone</a> & copyFrom )</h3>Copy constructor.<h3 class=fn><a name="~TimeZone"></a>TimeZone::~TimeZone ()</h3>Destruct TimeZone.<h3 class=fn>QString <a name="area"></a>TimeZone::area () const</h3>Returns the translated area of this time zone, e.g. Europe.<h3 class=fn>QString <a name="city"></a>TimeZone::city () const</h3>Returns the translated city of this time zone, e.g. Oslo.<h3 class=fn>QDateTime <a name="convert"></a>TimeZone::convert ( const QDateTime & dt, const <a href="timezone.html">TimeZone</a> & dtTz ) const</h3>Return the date and time <em>dt</em> in time zone <em>dtTz</em> as the date and timeint this time zone.<h3 class=fn>QCString <a name="countryCode"></a>TimeZone::countryCode ()</h3>Returns the ISO 3166 2-character country code.<h3 class=fn><a href="timezone.html">TimeZone</a> <a name="current"></a>TimeZone::current ()<tt> [static]</tt></h3>Returns the current system time zone.<h3 class=fn>QString <a name="description"></a>TimeZone::description () const</h3>Returns the translated description of this time zone.<h3 class=fn>QCString <a name="dstAbbreviation"></a>TimeZone::dstAbbreviation () const</h3>Returns the Daylight Savings Time (DST) time zone abbreviation.<h3 class=fn>QDateTime <a name="fromCurrent"></a>TimeZone::fromCurrent ( const QDateTime & curT ) const</h3>Returns the date and time <em>curT</em> in the current time zone as thedate and time in this time zone.<h3 class=fn>QDateTime <a name="fromUtc"></a>TimeZone::fromUtc ( const QDateTime & utc ) const</h3>Returns the UTC date and time <em>utc</em> as the date and time in this time zone.<h3 class=fn>QCString <a name="id"></a>TimeZone::id () const</h3>Return the time zone identifier, e.g. Europe/London<h3 class=fn>QStrList <a name="ids"></a>TimeZone::ids ()<tt> [static]</tt></h3>Returns a list of the time zone ids.<h3 class=fn>bool <a name="isValid"></a>TimeZone::isValid () const</h3>Returns TRUE if this is a valid time zone, otherwise FALSE.<h3 class=fn>int <a name="lat"></a>TimeZone::lat () const</h3>Returns the latitude in seconds.<h3 class=fn>QCString <a name="latStr"></a>TimeZone::latStr () const</h3>Returns the latitude as a string.<p> The format is: +-DDMM[SS]<h3 class=fn>int <a name="lon"></a>TimeZone::lon () const</h3>Returns the longitude in seconds.<h3 class=fn>QCString <a name="lonStr"></a>TimeZone::lonStr () const</h3>Returns the longitude as a string.<p> The format is: +-DDMM[SS]<h3 class=fn>bool <a name="operator!-eq"></a>TimeZone::operator!= ( const <a href="timezone.html">TimeZone</a> & c ) const</h3>Returns TRUE if <em>c</em> is not equal to this, otherwise FALSE.<h3 class=fn><a href="timezone.html">TimeZone</a> & <a name="operator-eq"></a>TimeZone::operator= ( const <a href="timezone.html">TimeZone</a> & from )</h3>Assign <em>from</em> to this.<h3 class=fn>bool <a name="operator-eq-eq"></a>TimeZone::operator== ( const <a href="timezone.html">TimeZone</a> & c ) const</h3>Returns TRUE if <em>c</em> is equal to this, otherwise FALSE.<h3 class=fn>void <a name="setId"></a>TimeZone::setId ( const char * id )</h3>Sets the current time zone id to <em>id</em>.<h3 class=fn>QCString <a name="standardAbbreviation"></a>TimeZone::standardAbbreviation () const</h3>Returns the time zone abbreviation, e.g. EST<h3 class=fn>QDateTime <a name="toCurrent"></a>TimeZone::toCurrent ( const QDateTime & thisT ) const</h3>Returns the date and time <em>thisT</em> in this time zone as the date and timein the current time zone.<h3 class=fn>uint <a name="toTime_t"></a>TimeZone::toTime_t ( const QDateTime & thisT ) const</h3>Returns the date and time <em>thisT</em> as the number of secondssince 1 January 1970.<h3 class=fn>QDateTime <a name="toUtc"></a>TimeZone::toUtc ( const QDateTime & thisT ) const</h3>Returns the date and time <em>thisT</em> in this time zone as UTC.<h3 class=fn><a href="timezone.html">TimeZone</a> <a name="utc"></a>TimeZone::utc ()<tt> [static]</tt></h3>Return a time zone located at the UTC reference.<h3 class=fn>QDateTime <a name="utcDateTime"></a>TimeZone::utcDateTime ()<tt> [static]</tt></h3>Return the UTC date and time.<!-- eof --><hr><p>This file is part of the <a href="../index.html">Qtopia</a> platform,copyright © 1995-2004<a href="http://www.trolltech.com/">Trolltech</a>, all rights reserved.<p><address><hr><div align="center"><table width="100%" cellspacing="0" border="0"><tr><td>Copyright © 2001-2004 Trolltech<td><a href="http://www.trolltech.com/trademarks.html">Trademarks</a><td align="right"><div align="right">Qtopia version 2.0.0</div></table></div></address></body></html>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?