Sophie

Sophie

distrib > Mageia > 5 > i586 > media > core-release > by-pkgid > 7aa0b3689999b2d0524276a8f3c2a10a > files > 425

glibmm2.4-doc-2.42.0-3.mga5.noarch.rpm

<!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>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.7"/>
<title>glibmm: Glib::DateTime Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">glibmm
   &#160;<span id="projectnumber">2.42.0</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.7 -->
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li><a href="modules.html"><span>Modules</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="examples.html"><span>Examples</span></a></li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="inherits.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="namespaceGlib.html">Glib</a></li><li class="navelem"><a class="el" href="classGlib_1_1DateTime.html">DateTime</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pub-static-methods">Static Public Member Functions</a> &#124;
<a href="#pro-attribs">Protected Attributes</a> &#124;
<a href="#related">Related Functions</a> &#124;
<a href="classGlib_1_1DateTime-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">Glib::DateTime Class Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p><a class="el" href="classGlib_1_1DateTime.html" title="DateTime - A structure representing Date and Time. ">DateTime</a> - A structure representing <a class="el" href="classGlib_1_1Date.html" title="Julian calendar date. ">Date</a> and Time.  
 <a href="classGlib_1_1DateTime.html#details">More...</a></p>

<p><code>#include &lt;glibmm/datetime.h&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a4466a00f72a591a9135ca7d851c4b5dd"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGlib_1_1DateTime.html#a4466a00f72a591a9135ca7d851c4b5dd">DateTime</a> ()</td></tr>
<tr class="memdesc:a4466a00f72a591a9135ca7d851c4b5dd"><td class="mdescLeft">&#160;</td><td class="mdescRight">Constructs an invalid object.  <a href="#a4466a00f72a591a9135ca7d851c4b5dd">More...</a><br /></td></tr>
<tr class="separator:a4466a00f72a591a9135ca7d851c4b5dd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a378567d4313c1621325c72b3640800a4"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGlib_1_1DateTime.html#a378567d4313c1621325c72b3640800a4">DateTime</a> (GDateTime* castitem, bool make_a_copy=false)</td></tr>
<tr class="separator:a378567d4313c1621325c72b3640800a4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aba4ab77ceac92f8a0c7fd70bff8183f3"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGlib_1_1DateTime.html#aba4ab77ceac92f8a0c7fd70bff8183f3">DateTime</a> (const <a class="el" href="classGlib_1_1DateTime.html">DateTime</a>&amp; src)</td></tr>
<tr class="separator:aba4ab77ceac92f8a0c7fd70bff8183f3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad4fb03d477fd3c930f06d7aa65a78c6a"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classGlib_1_1DateTime.html">DateTime</a>&amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGlib_1_1DateTime.html#ad4fb03d477fd3c930f06d7aa65a78c6a">operator=</a> (const <a class="el" href="classGlib_1_1DateTime.html">DateTime</a>&amp; src)</td></tr>
<tr class="separator:ad4fb03d477fd3c930f06d7aa65a78c6a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a60f7eba0bd77ef79f0a7b9a463ba77a0"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGlib_1_1DateTime.html#a60f7eba0bd77ef79f0a7b9a463ba77a0">~DateTime</a> ()</td></tr>
<tr class="separator:a60f7eba0bd77ef79f0a7b9a463ba77a0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aef6bffa86154c574827f3ef1b3a2012d"><td class="memItemLeft" align="right" valign="top">GDateTime*&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGlib_1_1DateTime.html#aef6bffa86154c574827f3ef1b3a2012d">gobj</a> ()</td></tr>
<tr class="separator:aef6bffa86154c574827f3ef1b3a2012d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a139cbc4f5494f70d8e084c14f2c679f7"><td class="memItemLeft" align="right" valign="top">const GDateTime*&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGlib_1_1DateTime.html#a139cbc4f5494f70d8e084c14f2c679f7">gobj</a> () const </td></tr>
<tr class="separator:a139cbc4f5494f70d8e084c14f2c679f7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a98671dd8d9508122f7b669e8b6b6f536"><td class="memItemLeft" align="right" valign="top">GDateTime*&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGlib_1_1DateTime.html#a98671dd8d9508122f7b669e8b6b6f536">gobj_copy</a> () const </td></tr>
<tr class="memdesc:a98671dd8d9508122f7b669e8b6b6f536"><td class="mdescLeft">&#160;</td><td class="mdescRight">Provides access to the underlying C instance. The caller is responsible for freeing it. Use when directly setting fields in structs.  <a href="#a98671dd8d9508122f7b669e8b6b6f536">More...</a><br /></td></tr>
<tr class="separator:a98671dd8d9508122f7b669e8b6b6f536"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1b365343ca46bcd3d8d470ab80f6cbaf"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classGlib_1_1DateTime.html">DateTime</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGlib_1_1DateTime.html#a1b365343ca46bcd3d8d470ab80f6cbaf">add</a> (<a class="el" href="namespaceGlib.html#a5e89f93f6c0c052accc8c9185df26709">TimeSpan</a> timespan) const </td></tr>
<tr class="memdesc:a1b365343ca46bcd3d8d470ab80f6cbaf"><td class="mdescLeft">&#160;</td><td class="mdescRight">Creates a copy of <em>datetime</em> and adds the specified timespan to the copy.  <a href="#a1b365343ca46bcd3d8d470ab80f6cbaf">More...</a><br /></td></tr>
<tr class="separator:a1b365343ca46bcd3d8d470ab80f6cbaf"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5996899dd825d5515070f9b0ae75af1a"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classGlib_1_1DateTime.html">DateTime</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGlib_1_1DateTime.html#a5996899dd825d5515070f9b0ae75af1a">add_years</a> (int years) const </td></tr>
<tr class="memdesc:a5996899dd825d5515070f9b0ae75af1a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Creates a copy of <em>datetime</em> and adds the specified number of years to the copy.  <a href="#a5996899dd825d5515070f9b0ae75af1a">More...</a><br /></td></tr>
<tr class="separator:a5996899dd825d5515070f9b0ae75af1a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0032220ed4670d0e7dc9359a871d98c9"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classGlib_1_1DateTime.html">DateTime</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGlib_1_1DateTime.html#a0032220ed4670d0e7dc9359a871d98c9">add_months</a> (int months) const </td></tr>
<tr class="memdesc:a0032220ed4670d0e7dc9359a871d98c9"><td class="mdescLeft">&#160;</td><td class="mdescRight">Creates a copy of <em>datetime</em> and adds the specified number of months to the copy.  <a href="#a0032220ed4670d0e7dc9359a871d98c9">More...</a><br /></td></tr>
<tr class="separator:a0032220ed4670d0e7dc9359a871d98c9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab6f7f4705402949607cf9bc59a14d5aa"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classGlib_1_1DateTime.html">DateTime</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGlib_1_1DateTime.html#ab6f7f4705402949607cf9bc59a14d5aa">add_weeks</a> (int weeks) const </td></tr>
<tr class="memdesc:ab6f7f4705402949607cf9bc59a14d5aa"><td class="mdescLeft">&#160;</td><td class="mdescRight">Creates a copy of <em>datetime</em> and adds the specified number of weeks to the copy.  <a href="#ab6f7f4705402949607cf9bc59a14d5aa">More...</a><br /></td></tr>
<tr class="separator:ab6f7f4705402949607cf9bc59a14d5aa"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a14e90d166b01751c755f66a128a01033"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classGlib_1_1DateTime.html">DateTime</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGlib_1_1DateTime.html#a14e90d166b01751c755f66a128a01033">add_days</a> (int days) const </td></tr>
<tr class="memdesc:a14e90d166b01751c755f66a128a01033"><td class="mdescLeft">&#160;</td><td class="mdescRight">Creates a copy of <em>datetime</em> and adds the specified number of days to the copy.  <a href="#a14e90d166b01751c755f66a128a01033">More...</a><br /></td></tr>
<tr class="separator:a14e90d166b01751c755f66a128a01033"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae3b65ea051b730f5d182d549ae7728ec"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classGlib_1_1DateTime.html">DateTime</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGlib_1_1DateTime.html#ae3b65ea051b730f5d182d549ae7728ec">add_hours</a> (int <a class="elRef" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/a01623.html#ab6ede778883411ba1212316a1c93a957">hours</a>) const </td></tr>
<tr class="memdesc:ae3b65ea051b730f5d182d549ae7728ec"><td class="mdescLeft">&#160;</td><td class="mdescRight">Creates a copy of <em>datetime</em> and adds the specified number of hours.  <a href="#ae3b65ea051b730f5d182d549ae7728ec">More...</a><br /></td></tr>
<tr class="separator:ae3b65ea051b730f5d182d549ae7728ec"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1fa7f7012716b6d4d297a6de3a6b773a"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classGlib_1_1DateTime.html">DateTime</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGlib_1_1DateTime.html#a1fa7f7012716b6d4d297a6de3a6b773a">add_minutes</a> (int <a class="elRef" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/a01623.html#aec4ae783e0c0475ca367e3bfbe67b7e5">minutes</a>) const </td></tr>
<tr class="memdesc:a1fa7f7012716b6d4d297a6de3a6b773a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Creates a copy of <em>datetime</em> adding the specified number of minutes.  <a href="#a1fa7f7012716b6d4d297a6de3a6b773a">More...</a><br /></td></tr>
<tr class="separator:a1fa7f7012716b6d4d297a6de3a6b773a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4042da1cbdd278ae7e08dccb5d80516d"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classGlib_1_1DateTime.html">DateTime</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGlib_1_1DateTime.html#a4042da1cbdd278ae7e08dccb5d80516d">add_seconds</a> (double <a class="elRef" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/a01623.html#acc2f93e09fbc239b7a4b48d3c577d0ba">seconds</a>) const </td></tr>
<tr class="memdesc:a4042da1cbdd278ae7e08dccb5d80516d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Creates a copy of <em>datetime</em> and adds the specified number of seconds.  <a href="#a4042da1cbdd278ae7e08dccb5d80516d">More...</a><br /></td></tr>
<tr class="separator:a4042da1cbdd278ae7e08dccb5d80516d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac33b87648a92a192c538baecd6fe1064"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classGlib_1_1DateTime.html">DateTime</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGlib_1_1DateTime.html#ac33b87648a92a192c538baecd6fe1064">add_full</a> (int years, int months, int days, int <a class="elRef" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/a01623.html#ab6ede778883411ba1212316a1c93a957">hours</a>, int <a class="elRef" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/a01623.html#aec4ae783e0c0475ca367e3bfbe67b7e5">minutes</a>, double <a class="elRef" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/a01623.html#acc2f93e09fbc239b7a4b48d3c577d0ba">seconds</a>) const </td></tr>
<tr class="memdesc:ac33b87648a92a192c538baecd6fe1064"><td class="mdescLeft">&#160;</td><td class="mdescRight">Creates a new <a class="el" href="classGlib_1_1DateTime.html" title="DateTime - A structure representing Date and Time. ">DateTime</a> adding the specified values to the current date and time in <em>datetime</em>.  <a href="#ac33b87648a92a192c538baecd6fe1064">More...</a><br /></td></tr>
<tr class="separator:ac33b87648a92a192c538baecd6fe1064"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a82511de9401c35535a8d67c27a5850c9"><td class="memItemLeft" align="right" valign="top"><a class="el" href="namespaceGlib.html#a5e89f93f6c0c052accc8c9185df26709">TimeSpan</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGlib_1_1DateTime.html#a82511de9401c35535a8d67c27a5850c9">difference</a> (const <a class="el" href="classGlib_1_1DateTime.html">DateTime</a>&amp; other) const </td></tr>
<tr class="memdesc:a82511de9401c35535a8d67c27a5850c9"><td class="mdescLeft">&#160;</td><td class="mdescRight">Calculates the difference in time between <em>*this</em> and <em>other</em>.  <a href="#a82511de9401c35535a8d67c27a5850c9">More...</a><br /></td></tr>
<tr class="separator:a82511de9401c35535a8d67c27a5850c9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6119bf56393f0a1cfa682c8867dd605b"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGlib_1_1DateTime.html#a6119bf56393f0a1cfa682c8867dd605b">compare</a> (const <a class="el" href="classGlib_1_1DateTime.html">DateTime</a>&amp; other) const </td></tr>
<tr class="memdesc:a6119bf56393f0a1cfa682c8867dd605b"><td class="mdescLeft">&#160;</td><td class="mdescRight">A comparison function for DateTimes that is suitable as a CompareFunc.  <a href="#a6119bf56393f0a1cfa682c8867dd605b">More...</a><br /></td></tr>
<tr class="separator:a6119bf56393f0a1cfa682c8867dd605b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac0ec361fe2621cc7374127b439c2a0a9"><td class="memItemLeft" align="right" valign="top">guint&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGlib_1_1DateTime.html#ac0ec361fe2621cc7374127b439c2a0a9">hash</a> () const </td></tr>
<tr class="memdesc:ac0ec361fe2621cc7374127b439c2a0a9"><td class="mdescLeft">&#160;</td><td class="mdescRight">Hashes <em>datetime</em> into a <code>unsigned int</code>, suitable for use within HashTable.  <a href="#ac0ec361fe2621cc7374127b439c2a0a9">More...</a><br /></td></tr>
<tr class="separator:ac0ec361fe2621cc7374127b439c2a0a9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abc30c94af854cc5a69ad6a87d5caf268"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGlib_1_1DateTime.html#abc30c94af854cc5a69ad6a87d5caf268">equal</a> (const <a class="el" href="classGlib_1_1DateTime.html">DateTime</a>&amp; other) const </td></tr>
<tr class="memdesc:abc30c94af854cc5a69ad6a87d5caf268"><td class="mdescLeft">&#160;</td><td class="mdescRight">Checks to see if <em>*this</em> and <em>other</em> are equal.  <a href="#abc30c94af854cc5a69ad6a87d5caf268">More...</a><br /></td></tr>
<tr class="separator:abc30c94af854cc5a69ad6a87d5caf268"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac800e00909bd0e0c0b02d280af29bcaf"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGlib_1_1DateTime.html#ac800e00909bd0e0c0b02d280af29bcaf">get_ymd</a> (int&amp; year, int&amp; month, int&amp; day) const </td></tr>
<tr class="memdesc:ac800e00909bd0e0c0b02d280af29bcaf"><td class="mdescLeft">&#160;</td><td class="mdescRight">Retrieves the Gregorian day, month, and year of a given <a class="el" href="classGlib_1_1DateTime.html" title="DateTime - A structure representing Date and Time. ">DateTime</a>.  <a href="#ac800e00909bd0e0c0b02d280af29bcaf">More...</a><br /></td></tr>
<tr class="separator:ac800e00909bd0e0c0b02d280af29bcaf"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a220d140aeeb7c8794bab7baee96c6b9f"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGlib_1_1DateTime.html#a220d140aeeb7c8794bab7baee96c6b9f">get_year</a> () const </td></tr>
<tr class="memdesc:a220d140aeeb7c8794bab7baee96c6b9f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Retrieves the year represented by <em>datetime</em> in the Gregorian calendar.  <a href="#a220d140aeeb7c8794bab7baee96c6b9f">More...</a><br /></td></tr>
<tr class="separator:a220d140aeeb7c8794bab7baee96c6b9f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7dd3d0949c3abd7fc235c4b79ce00d1e"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGlib_1_1DateTime.html#a7dd3d0949c3abd7fc235c4b79ce00d1e">get_month</a> () const </td></tr>
<tr class="memdesc:a7dd3d0949c3abd7fc235c4b79ce00d1e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Retrieves the month of the year represented by <em>datetime</em> in the Gregorian calendar.  <a href="#a7dd3d0949c3abd7fc235c4b79ce00d1e">More...</a><br /></td></tr>
<tr class="separator:a7dd3d0949c3abd7fc235c4b79ce00d1e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a465d7aff2bd93387814d2c4cbb59d7fa"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGlib_1_1DateTime.html#a465d7aff2bd93387814d2c4cbb59d7fa">get_day_of_month</a> () const </td></tr>
<tr class="memdesc:a465d7aff2bd93387814d2c4cbb59d7fa"><td class="mdescLeft">&#160;</td><td class="mdescRight">Retrieves the day of the month represented by <em>datetime</em> in the gregorian calendar.  <a href="#a465d7aff2bd93387814d2c4cbb59d7fa">More...</a><br /></td></tr>
<tr class="separator:a465d7aff2bd93387814d2c4cbb59d7fa"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abcaf8ade7fb7cdd3188177caf2f09a30"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGlib_1_1DateTime.html#abcaf8ade7fb7cdd3188177caf2f09a30">get_week_numbering_year</a> () const </td></tr>
<tr class="memdesc:abcaf8ade7fb7cdd3188177caf2f09a30"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the ISO 8601 week-numbering year in which the week containing <em>datetime</em> falls.  <a href="#abcaf8ade7fb7cdd3188177caf2f09a30">More...</a><br /></td></tr>
<tr class="separator:abcaf8ade7fb7cdd3188177caf2f09a30"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3603c5796c447504dfea0978033f705c"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGlib_1_1DateTime.html#a3603c5796c447504dfea0978033f705c">get_week_of_year</a> () const </td></tr>
<tr class="memdesc:a3603c5796c447504dfea0978033f705c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the ISO 8601 week number for the week containing <em>datetime</em>.  <a href="#a3603c5796c447504dfea0978033f705c">More...</a><br /></td></tr>
<tr class="separator:a3603c5796c447504dfea0978033f705c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae8e1355802855d6de7661e44dce843c7"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGlib_1_1DateTime.html#ae8e1355802855d6de7661e44dce843c7">get_day_of_week</a> () const </td></tr>
<tr class="memdesc:ae8e1355802855d6de7661e44dce843c7"><td class="mdescLeft">&#160;</td><td class="mdescRight">Retrieves the ISO 8601 day of the week on which <em>datetime</em> falls (1 is Monday, 2 is Tuesday...  <a href="#ae8e1355802855d6de7661e44dce843c7">More...</a><br /></td></tr>
<tr class="separator:ae8e1355802855d6de7661e44dce843c7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5bd2dec1108519633f5bc9e3022e4db5"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGlib_1_1DateTime.html#a5bd2dec1108519633f5bc9e3022e4db5">get_day_of_year</a> () const </td></tr>
<tr class="memdesc:a5bd2dec1108519633f5bc9e3022e4db5"><td class="mdescLeft">&#160;</td><td class="mdescRight">Retrieves the day of the year represented by <em>datetime</em> in the Gregorian calendar.  <a href="#a5bd2dec1108519633f5bc9e3022e4db5">More...</a><br /></td></tr>
<tr class="separator:a5bd2dec1108519633f5bc9e3022e4db5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac51d6cdcdfa5e10b8519a42e9b5de288"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGlib_1_1DateTime.html#ac51d6cdcdfa5e10b8519a42e9b5de288">get_hour</a> () const </td></tr>
<tr class="memdesc:ac51d6cdcdfa5e10b8519a42e9b5de288"><td class="mdescLeft">&#160;</td><td class="mdescRight">Retrieves the hour of the day represented by <em>datetime</em>.  <a href="#ac51d6cdcdfa5e10b8519a42e9b5de288">More...</a><br /></td></tr>
<tr class="separator:ac51d6cdcdfa5e10b8519a42e9b5de288"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aef76a1424401b0908f8d4f650e7f935d"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGlib_1_1DateTime.html#aef76a1424401b0908f8d4f650e7f935d">get_minute</a> () const </td></tr>
<tr class="memdesc:aef76a1424401b0908f8d4f650e7f935d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Retrieves the minute of the hour represented by <em>datetime</em>.  <a href="#aef76a1424401b0908f8d4f650e7f935d">More...</a><br /></td></tr>
<tr class="separator:aef76a1424401b0908f8d4f650e7f935d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae1c5e4f766d5086aeca50e3b97c2a8a7"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGlib_1_1DateTime.html#ae1c5e4f766d5086aeca50e3b97c2a8a7">get_second</a> () const </td></tr>
<tr class="memdesc:ae1c5e4f766d5086aeca50e3b97c2a8a7"><td class="mdescLeft">&#160;</td><td class="mdescRight">Retrieves the second of the minute represented by <em>datetime</em>.  <a href="#ae1c5e4f766d5086aeca50e3b97c2a8a7">More...</a><br /></td></tr>
<tr class="separator:ae1c5e4f766d5086aeca50e3b97c2a8a7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a42723abf75e9ac9a1fccf9a503316a2d"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGlib_1_1DateTime.html#a42723abf75e9ac9a1fccf9a503316a2d">get_microsecond</a> () const </td></tr>
<tr class="memdesc:a42723abf75e9ac9a1fccf9a503316a2d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Retrieves the microsecond of the date represented by <em>datetime</em>.  <a href="#a42723abf75e9ac9a1fccf9a503316a2d">More...</a><br /></td></tr>
<tr class="separator:a42723abf75e9ac9a1fccf9a503316a2d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abce64b186924b7208fa9296b6477d28a"><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGlib_1_1DateTime.html#abce64b186924b7208fa9296b6477d28a">get_seconds</a> () const </td></tr>
<tr class="memdesc:abce64b186924b7208fa9296b6477d28a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Retrieves the number of seconds since the start of the last minute, including the fractional part.  <a href="#abce64b186924b7208fa9296b6477d28a">More...</a><br /></td></tr>
<tr class="separator:abce64b186924b7208fa9296b6477d28a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afbcdc4230ad98fe68e484da24d79b79f"><td class="memItemLeft" align="right" valign="top">gint64&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGlib_1_1DateTime.html#afbcdc4230ad98fe68e484da24d79b79f">to_unix</a> () const </td></tr>
<tr class="memdesc:afbcdc4230ad98fe68e484da24d79b79f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Gives the Unix time corresponding to <em>datetime</em>, rounding down to the nearest second.  <a href="#afbcdc4230ad98fe68e484da24d79b79f">More...</a><br /></td></tr>
<tr class="separator:afbcdc4230ad98fe68e484da24d79b79f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a59901087079627bd73248f6b14d3f08f"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGlib_1_1DateTime.html#a59901087079627bd73248f6b14d3f08f">to_timeval</a> (<a class="el" href="structGlib_1_1TimeVal.html">TimeVal</a>&amp; tv) const </td></tr>
<tr class="memdesc:a59901087079627bd73248f6b14d3f08f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Stores the instant in time that <em>datetime</em> represents into <em>tv</em>.  <a href="#a59901087079627bd73248f6b14d3f08f">More...</a><br /></td></tr>
<tr class="separator:a59901087079627bd73248f6b14d3f08f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a21b707b52561ed560e396c60c4b7fa52"><td class="memItemLeft" align="right" valign="top"><a class="el" href="namespaceGlib.html#a5e89f93f6c0c052accc8c9185df26709">TimeSpan</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGlib_1_1DateTime.html#a21b707b52561ed560e396c60c4b7fa52">get_utc_offset</a> () const </td></tr>
<tr class="memdesc:a21b707b52561ed560e396c60c4b7fa52"><td class="mdescLeft">&#160;</td><td class="mdescRight">Determines the offset to UTC in effect at the time and in the time zone of <em>datetime</em>.  <a href="#a21b707b52561ed560e396c60c4b7fa52">More...</a><br /></td></tr>
<tr class="separator:a21b707b52561ed560e396c60c4b7fa52"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7721e9388145449b5180fb2bdcd6d08e"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classGlib_1_1ustring.html">Glib::ustring</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGlib_1_1DateTime.html#a7721e9388145449b5180fb2bdcd6d08e">get_timezone_abbreviation</a> () const </td></tr>
<tr class="memdesc:a7721e9388145449b5180fb2bdcd6d08e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Determines the time zone abbreviation to be used at the time and in the time zone of <em>datetime</em>.  <a href="#a7721e9388145449b5180fb2bdcd6d08e">More...</a><br /></td></tr>
<tr class="separator:a7721e9388145449b5180fb2bdcd6d08e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afd141e1742670663f302e5d24e8f2e60"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGlib_1_1DateTime.html#afd141e1742670663f302e5d24e8f2e60">is_daylight_savings</a> () const </td></tr>
<tr class="memdesc:afd141e1742670663f302e5d24e8f2e60"><td class="mdescLeft">&#160;</td><td class="mdescRight">Determines if daylight savings time is in effect at the time and in the time zone of <em>datetime</em>.  <a href="#afd141e1742670663f302e5d24e8f2e60">More...</a><br /></td></tr>
<tr class="separator:afd141e1742670663f302e5d24e8f2e60"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a96f0edc9204c6739c0a7ea235be35531"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classGlib_1_1DateTime.html">DateTime</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGlib_1_1DateTime.html#a96f0edc9204c6739c0a7ea235be35531">to_timezone</a> (const <a class="el" href="classGlib_1_1TimeZone.html">TimeZone</a>&amp; tz) const </td></tr>
<tr class="memdesc:a96f0edc9204c6739c0a7ea235be35531"><td class="mdescLeft">&#160;</td><td class="mdescRight">Create a new <a class="el" href="classGlib_1_1DateTime.html" title="DateTime - A structure representing Date and Time. ">DateTime</a> corresponding to the same instant in time as <em>datetime</em>, but in the time zone <em>tz</em>.  <a href="#a96f0edc9204c6739c0a7ea235be35531">More...</a><br /></td></tr>
<tr class="separator:a96f0edc9204c6739c0a7ea235be35531"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad7edb0c4f14de146d16283ae3e11e78f"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classGlib_1_1DateTime.html">DateTime</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGlib_1_1DateTime.html#ad7edb0c4f14de146d16283ae3e11e78f">to_local</a> () const </td></tr>
<tr class="memdesc:ad7edb0c4f14de146d16283ae3e11e78f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Creates a new <a class="el" href="classGlib_1_1DateTime.html" title="DateTime - A structure representing Date and Time. ">DateTime</a> corresponding to the same instant in time as <em>datetime</em>, but in the local time zone.  <a href="#ad7edb0c4f14de146d16283ae3e11e78f">More...</a><br /></td></tr>
<tr class="separator:ad7edb0c4f14de146d16283ae3e11e78f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a732f91994ea5a1c48f3a6ad75fda6aba"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classGlib_1_1DateTime.html">DateTime</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGlib_1_1DateTime.html#a732f91994ea5a1c48f3a6ad75fda6aba">to_utc</a> () const </td></tr>
<tr class="memdesc:a732f91994ea5a1c48f3a6ad75fda6aba"><td class="mdescLeft">&#160;</td><td class="mdescRight">Creates a new <a class="el" href="classGlib_1_1DateTime.html" title="DateTime - A structure representing Date and Time. ">DateTime</a> corresponding to the same instant in time as <em>datetime</em>, but in UTC.  <a href="#a732f91994ea5a1c48f3a6ad75fda6aba">More...</a><br /></td></tr>
<tr class="separator:a732f91994ea5a1c48f3a6ad75fda6aba"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae6106448b19d3a82cc2cdd94b7e2942a"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classGlib_1_1ustring.html">Glib::ustring</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGlib_1_1DateTime.html#ae6106448b19d3a82cc2cdd94b7e2942a">format</a> (const <a class="el" href="classGlib_1_1ustring.html">Glib::ustring</a>&amp; format) const </td></tr>
<tr class="memdesc:ae6106448b19d3a82cc2cdd94b7e2942a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Creates a newly allocated string representing the requested <em>format</em>.  <a href="#ae6106448b19d3a82cc2cdd94b7e2942a">More...</a><br /></td></tr>
<tr class="separator:ae6106448b19d3a82cc2cdd94b7e2942a"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a>
Static Public Member Functions</h2></td></tr>
<tr class="memitem:ad48ba71c7573b26d636b125202843613"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classGlib_1_1DateTime.html">DateTime</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGlib_1_1DateTime.html#ad48ba71c7573b26d636b125202843613">create_now</a> (const <a class="el" href="classGlib_1_1TimeZone.html">TimeZone</a>&amp; tz)</td></tr>
<tr class="memdesc:ad48ba71c7573b26d636b125202843613"><td class="mdescLeft">&#160;</td><td class="mdescRight">Creates a <a class="el" href="classGlib_1_1DateTime.html" title="DateTime - A structure representing Date and Time. ">DateTime</a> corresponding to this exact instant in the given time zone <em>tz</em>.  <a href="#ad48ba71c7573b26d636b125202843613">More...</a><br /></td></tr>
<tr class="separator:ad48ba71c7573b26d636b125202843613"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a15f3d384840951cbf993af14c7df0db8"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classGlib_1_1DateTime.html">DateTime</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGlib_1_1DateTime.html#a15f3d384840951cbf993af14c7df0db8">create_now_local</a> ()</td></tr>
<tr class="memdesc:a15f3d384840951cbf993af14c7df0db8"><td class="mdescLeft">&#160;</td><td class="mdescRight">Creates a <a class="el" href="classGlib_1_1DateTime.html" title="DateTime - A structure representing Date and Time. ">DateTime</a> corresponding to this exact instant in the local time zone.  <a href="#a15f3d384840951cbf993af14c7df0db8">More...</a><br /></td></tr>
<tr class="separator:a15f3d384840951cbf993af14c7df0db8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7fe96fc1d4eace42e2e45906717fc428"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classGlib_1_1DateTime.html">DateTime</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGlib_1_1DateTime.html#a7fe96fc1d4eace42e2e45906717fc428">create_now_utc</a> ()</td></tr>
<tr class="memdesc:a7fe96fc1d4eace42e2e45906717fc428"><td class="mdescLeft">&#160;</td><td class="mdescRight">Creates a <a class="el" href="classGlib_1_1DateTime.html" title="DateTime - A structure representing Date and Time. ">DateTime</a> corresponding to this exact instant in UTC.  <a href="#a7fe96fc1d4eace42e2e45906717fc428">More...</a><br /></td></tr>
<tr class="separator:a7fe96fc1d4eace42e2e45906717fc428"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abbeb5890f680e19af64d4d8ade4d6b33"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classGlib_1_1DateTime.html">DateTime</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGlib_1_1DateTime.html#abbeb5890f680e19af64d4d8ade4d6b33">create_now_local</a> (gint64 t)</td></tr>
<tr class="memdesc:abbeb5890f680e19af64d4d8ade4d6b33"><td class="mdescLeft">&#160;</td><td class="mdescRight">Creates a <a class="el" href="classGlib_1_1DateTime.html" title="DateTime - A structure representing Date and Time. ">DateTime</a> corresponding to the given Unix time <em>t</em> in the local time zone.  <a href="#abbeb5890f680e19af64d4d8ade4d6b33">More...</a><br /></td></tr>
<tr class="separator:abbeb5890f680e19af64d4d8ade4d6b33"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2823b34b5116ad5e2bde0ec3c1eb1c30"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classGlib_1_1DateTime.html">DateTime</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGlib_1_1DateTime.html#a2823b34b5116ad5e2bde0ec3c1eb1c30">create_now_utc</a> (gint64 t)</td></tr>
<tr class="memdesc:a2823b34b5116ad5e2bde0ec3c1eb1c30"><td class="mdescLeft">&#160;</td><td class="mdescRight">Creates a <a class="el" href="classGlib_1_1DateTime.html" title="DateTime - A structure representing Date and Time. ">DateTime</a> corresponding to the given Unix time <em>t</em> in UTC.  <a href="#a2823b34b5116ad5e2bde0ec3c1eb1c30">More...</a><br /></td></tr>
<tr class="separator:a2823b34b5116ad5e2bde0ec3c1eb1c30"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a990034c6ead5c34c22a9e989c4a3e4e3"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classGlib_1_1DateTime.html">DateTime</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGlib_1_1DateTime.html#a990034c6ead5c34c22a9e989c4a3e4e3">create_now_local</a> (const <a class="el" href="structGlib_1_1TimeVal.html">TimeVal</a>&amp; tv)</td></tr>
<tr class="memdesc:a990034c6ead5c34c22a9e989c4a3e4e3"><td class="mdescLeft">&#160;</td><td class="mdescRight">Creates a <a class="el" href="classGlib_1_1DateTime.html" title="DateTime - A structure representing Date and Time. ">DateTime</a> corresponding to the given <a class="el" href="structGlib_1_1TimeVal.html" title="Glib::TimeVal is a wrapper around the glib structure GTimeVal. ">TimeVal</a> <em>tv</em> in the local time zone.  <a href="#a990034c6ead5c34c22a9e989c4a3e4e3">More...</a><br /></td></tr>
<tr class="separator:a990034c6ead5c34c22a9e989c4a3e4e3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac3be9be4892d8f20147f7a94e0488113"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classGlib_1_1DateTime.html">DateTime</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGlib_1_1DateTime.html#ac3be9be4892d8f20147f7a94e0488113">create_now_utc</a> (const <a class="el" href="structGlib_1_1TimeVal.html">TimeVal</a>&amp; tv)</td></tr>
<tr class="memdesc:ac3be9be4892d8f20147f7a94e0488113"><td class="mdescLeft">&#160;</td><td class="mdescRight">Creates a <a class="el" href="classGlib_1_1DateTime.html" title="DateTime - A structure representing Date and Time. ">DateTime</a> corresponding to the given <a class="el" href="structGlib_1_1TimeVal.html" title="Glib::TimeVal is a wrapper around the glib structure GTimeVal. ">TimeVal</a> <em>tv</em> in UTC.  <a href="#ac3be9be4892d8f20147f7a94e0488113">More...</a><br /></td></tr>
<tr class="separator:ac3be9be4892d8f20147f7a94e0488113"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aee0b3393970d11dc5533bf51233abb25"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classGlib_1_1DateTime.html">DateTime</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGlib_1_1DateTime.html#aee0b3393970d11dc5533bf51233abb25">create</a> (const <a class="el" href="classGlib_1_1TimeZone.html">TimeZone</a>&amp; tz, int year, int month, int day, int hour, int minute, double <a class="elRef" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/a01623.html#acc2f93e09fbc239b7a4b48d3c577d0ba">seconds</a>)</td></tr>
<tr class="memdesc:aee0b3393970d11dc5533bf51233abb25"><td class="mdescLeft">&#160;</td><td class="mdescRight">Creates a new <a class="el" href="classGlib_1_1DateTime.html" title="DateTime - A structure representing Date and Time. ">DateTime</a> corresponding to the given date and time in the time zone <em>tz</em>.  <a href="#aee0b3393970d11dc5533bf51233abb25">More...</a><br /></td></tr>
<tr class="separator:aee0b3393970d11dc5533bf51233abb25"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a377401c243100e1172341c6747339c27"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classGlib_1_1DateTime.html">DateTime</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGlib_1_1DateTime.html#a377401c243100e1172341c6747339c27">create_local</a> (int year, int month, int day, int hour, int minute, double <a class="elRef" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/a01623.html#acc2f93e09fbc239b7a4b48d3c577d0ba">seconds</a>)</td></tr>
<tr class="memdesc:a377401c243100e1172341c6747339c27"><td class="mdescLeft">&#160;</td><td class="mdescRight">Creates a new <a class="el" href="classGlib_1_1DateTime.html" title="DateTime - A structure representing Date and Time. ">DateTime</a> corresponding to the given date and time in the local time zone.  <a href="#a377401c243100e1172341c6747339c27">More...</a><br /></td></tr>
<tr class="separator:a377401c243100e1172341c6747339c27"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6c46434388bad186f4f53988d925e110"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classGlib_1_1DateTime.html">DateTime</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGlib_1_1DateTime.html#a6c46434388bad186f4f53988d925e110">create_utc</a> (int year, int month, int day, int hour, int minute, double <a class="elRef" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/a01623.html#acc2f93e09fbc239b7a4b48d3c577d0ba">seconds</a>)</td></tr>
<tr class="memdesc:a6c46434388bad186f4f53988d925e110"><td class="mdescLeft">&#160;</td><td class="mdescRight">Creates a new <a class="el" href="classGlib_1_1DateTime.html" title="DateTime - A structure representing Date and Time. ">DateTime</a> corresponding to the given date and time in UTC.  <a href="#a6c46434388bad186f4f53988d925e110">More...</a><br /></td></tr>
<tr class="separator:a6c46434388bad186f4f53988d925e110"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pro-attribs"></a>
Protected Attributes</h2></td></tr>
<tr class="memitem:a89d0ade6e43a96039d52f666610e17c4"><td class="memItemLeft" align="right" valign="top">GDateTime*&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGlib_1_1DateTime.html#a89d0ade6e43a96039d52f666610e17c4">gobject_</a></td></tr>
<tr class="separator:a89d0ade6e43a96039d52f666610e17c4"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="related"></a>
Related Functions</h2></td></tr>
<tr><td class="ititle" colspan="2"><p>(Note that these are not member functions.) </p>
</td></tr>
<tr class="memitem:ae0c5dfdc4615424386bbf46d1181580e"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classGlib_1_1DateTime.html">Glib::DateTime</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classGlib_1_1DateTime.html#ae0c5dfdc4615424386bbf46d1181580e">wrap</a> (GDateTime* object, bool take_copy=false)</td></tr>
<tr class="memdesc:ae0c5dfdc4615424386bbf46d1181580e"><td class="mdescLeft">&#160;</td><td class="mdescRight">A <a class="el" href="namespaceGlib.html#a671306f4a3a0cae5ab4d7a9d54886592">Glib::wrap()</a> method for this object.  <a href="#ae0c5dfdc4615424386bbf46d1181580e">More...</a><br /></td></tr>
<tr class="separator:ae0c5dfdc4615424386bbf46d1181580e"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p><a class="el" href="classGlib_1_1DateTime.html" title="DateTime - A structure representing Date and Time. ">DateTime</a> - A structure representing <a class="el" href="classGlib_1_1Date.html" title="Julian calendar date. ">Date</a> and Time. </p>
<p><a class="el" href="classGlib_1_1DateTime.html" title="DateTime - A structure representing Date and Time. ">DateTime</a> is a structure that combines a Gregorian date and time into a single structure. It provides many conversion and methods to manipulate dates and times. Time precision is provided down to microseconds and the time can range (proleptically) from 0001-01-01 00:00:00 to 9999-12-31 23:59:59.999999. <a class="el" href="classGlib_1_1DateTime.html" title="DateTime - A structure representing Date and Time. ">DateTime</a> follows POSIX time in the sense that it is oblivious to leap seconds.</p>
<p><a class="el" href="classGlib_1_1DateTime.html" title="DateTime - A structure representing Date and Time. ">DateTime</a> is an immutable object; once it has been created it cannot be modified further. All modifiers will create a new <a class="el" href="classGlib_1_1DateTime.html" title="DateTime - A structure representing Date and Time. ">DateTime</a>. Nearly all such functions can fail due to the date or time going out of range, in which case <code>0</code> will be returned.</p>
<p><a class="el" href="classGlib_1_1DateTime.html" title="DateTime - A structure representing Date and Time. ">DateTime</a> is reference counted. When the reference count drops to 0, the resources allocated by the <a class="el" href="classGlib_1_1DateTime.html" title="DateTime - A structure representing Date and Time. ">DateTime</a> structure are released.</p>
<p>Many parts of the API may produce non-obvious results. As an example, adding two months to January 31st will yield March 31st whereas adding one month and then one month again will yield either March 28th or March 29th. Also note that adding 24 hours is not always the same as adding one day (since days containing daylight savings time transitions are either 23 or 25 hours in length). </p><dl class="since_2_30"><dt><b><a class="el" href="since_2_30.html#_since_2_30000001">Since glibmm 2.30:</a></b></dt><dd></dd></dl>
</div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="a4466a00f72a591a9135ca7d851c4b5dd"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Glib::DateTime::DateTime </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Constructs an invalid object. </p>
<p>E.g. for output arguments to methods. There is not much you can do with the object before it has been assigned a valid value. </p>

</div>
</div>
<a class="anchor" id="a378567d4313c1621325c72b3640800a4"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">Glib::DateTime::DateTime </td>
          <td>(</td>
          <td class="paramtype">GDateTime *&#160;</td>
          <td class="paramname"><em>castitem</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>make_a_copy</em> = <code>false</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">explicit</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a class="anchor" id="aba4ab77ceac92f8a0c7fd70bff8183f3"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Glib::DateTime::DateTime </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classGlib_1_1DateTime.html">DateTime</a>&amp;&#160;</td>
          <td class="paramname"><em>src</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a class="anchor" id="a60f7eba0bd77ef79f0a7b9a463ba77a0"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Glib::DateTime::~DateTime </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a class="anchor" id="a1b365343ca46bcd3d8d470ab80f6cbaf"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classGlib_1_1DateTime.html">DateTime</a> Glib::DateTime::add </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="namespaceGlib.html#a5e89f93f6c0c052accc8c9185df26709">TimeSpan</a>&#160;</td>
          <td class="paramname"><em>timespan</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Creates a copy of <em>datetime</em> and adds the specified timespan to the copy. </p>
<dl class="since_2_26"><dt><b><a class="el" href="since_2_26.html#_since_2_26000011">Since glibmm 2.26:</a></b></dt><dd></dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">timespan</td><td>A TimeSpan. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>The newly created <a class="el" href="classGlib_1_1DateTime.html" title="DateTime - A structure representing Date and Time. ">DateTime</a> which should be freed with g_date_time_unref(). </dd></dl>

</div>
</div>
<a class="anchor" id="a14e90d166b01751c755f66a128a01033"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classGlib_1_1DateTime.html">DateTime</a> Glib::DateTime::add_days </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>days</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Creates a copy of <em>datetime</em> and adds the specified number of days to the copy. </p>
<p>Add negative values to subtract days.</p>
<dl class="since_2_26"><dt><b><a class="el" href="since_2_26.html#_since_2_26000015">Since glibmm 2.26:</a></b></dt><dd></dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">days</td><td>The number of days. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>The newly created <a class="el" href="classGlib_1_1DateTime.html" title="DateTime - A structure representing Date and Time. ">DateTime</a> which should be freed with g_date_time_unref(). </dd></dl>

</div>
</div>
<a class="anchor" id="ac33b87648a92a192c538baecd6fe1064"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classGlib_1_1DateTime.html">DateTime</a> Glib::DateTime::add_full </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>years</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>months</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>days</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>hours</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>minutes</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>seconds</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Creates a new <a class="el" href="classGlib_1_1DateTime.html" title="DateTime - A structure representing Date and Time. ">DateTime</a> adding the specified values to the current date and time in <em>datetime</em>. </p>
<p>Add negative values to subtract.</p>
<dl class="since_2_26"><dt><b><a class="el" href="since_2_26.html#_since_2_26000019">Since glibmm 2.26:</a></b></dt><dd></dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">years</td><td>The number of years to add. </td></tr>
    <tr><td class="paramname">months</td><td>The number of months to add. </td></tr>
    <tr><td class="paramname">days</td><td>The number of days to add. </td></tr>
    <tr><td class="paramname">hours</td><td>The number of hours to add. </td></tr>
    <tr><td class="paramname">minutes</td><td>The number of minutes to add. </td></tr>
    <tr><td class="paramname">seconds</td><td>The number of seconds to add. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>The newly created <a class="el" href="classGlib_1_1DateTime.html" title="DateTime - A structure representing Date and Time. ">DateTime</a> that should be freed with g_date_time_unref(). </dd></dl>

</div>
</div>
<a class="anchor" id="ae3b65ea051b730f5d182d549ae7728ec"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classGlib_1_1DateTime.html">DateTime</a> Glib::DateTime::add_hours </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>hours</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Creates a copy of <em>datetime</em> and adds the specified number of hours. </p>
<p>Add negative values to subtract hours.</p>
<dl class="since_2_26"><dt><b><a class="el" href="since_2_26.html#_since_2_26000016">Since glibmm 2.26:</a></b></dt><dd></dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">hours</td><td>The number of hours to add. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>The newly created <a class="el" href="classGlib_1_1DateTime.html" title="DateTime - A structure representing Date and Time. ">DateTime</a> which should be freed with g_date_time_unref(). </dd></dl>

</div>
</div>
<a class="anchor" id="a1fa7f7012716b6d4d297a6de3a6b773a"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classGlib_1_1DateTime.html">DateTime</a> Glib::DateTime::add_minutes </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>minutes</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Creates a copy of <em>datetime</em> adding the specified number of minutes. </p>
<p>Add negative values to subtract minutes.</p>
<dl class="since_2_26"><dt><b><a class="el" href="since_2_26.html#_since_2_26000017">Since glibmm 2.26:</a></b></dt><dd></dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">minutes</td><td>The number of minutes to add. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>The newly created <a class="el" href="classGlib_1_1DateTime.html" title="DateTime - A structure representing Date and Time. ">DateTime</a> which should be freed with g_date_time_unref(). </dd></dl>

</div>
</div>
<a class="anchor" id="a0032220ed4670d0e7dc9359a871d98c9"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classGlib_1_1DateTime.html">DateTime</a> Glib::DateTime::add_months </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>months</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Creates a copy of <em>datetime</em> and adds the specified number of months to the copy. </p>
<p>Add negative values to subtract months.</p>
<dl class="since_2_26"><dt><b><a class="el" href="since_2_26.html#_since_2_26000013">Since glibmm 2.26:</a></b></dt><dd></dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">months</td><td>The number of months. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>The newly created <a class="el" href="classGlib_1_1DateTime.html" title="DateTime - A structure representing Date and Time. ">DateTime</a> which should be freed with g_date_time_unref(). </dd></dl>

</div>
</div>
<a class="anchor" id="a4042da1cbdd278ae7e08dccb5d80516d"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classGlib_1_1DateTime.html">DateTime</a> Glib::DateTime::add_seconds </td>
          <td>(</td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>seconds</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Creates a copy of <em>datetime</em> and adds the specified number of seconds. </p>
<p>Add negative values to subtract seconds.</p>
<dl class="since_2_26"><dt><b><a class="el" href="since_2_26.html#_since_2_26000018">Since glibmm 2.26:</a></b></dt><dd></dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">seconds</td><td>The number of seconds to add. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>The newly created <a class="el" href="classGlib_1_1DateTime.html" title="DateTime - A structure representing Date and Time. ">DateTime</a> which should be freed with g_date_time_unref(). </dd></dl>

</div>
</div>
<a class="anchor" id="ab6f7f4705402949607cf9bc59a14d5aa"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classGlib_1_1DateTime.html">DateTime</a> Glib::DateTime::add_weeks </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>weeks</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Creates a copy of <em>datetime</em> and adds the specified number of weeks to the copy. </p>
<p>Add negative values to subtract weeks.</p>
<dl class="since_2_26"><dt><b><a class="el" href="since_2_26.html#_since_2_26000014">Since glibmm 2.26:</a></b></dt><dd></dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">weeks</td><td>The number of weeks. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>The newly created <a class="el" href="classGlib_1_1DateTime.html" title="DateTime - A structure representing Date and Time. ">DateTime</a> which should be freed with g_date_time_unref(). </dd></dl>

</div>
</div>
<a class="anchor" id="a5996899dd825d5515070f9b0ae75af1a"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classGlib_1_1DateTime.html">DateTime</a> Glib::DateTime::add_years </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>years</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Creates a copy of <em>datetime</em> and adds the specified number of years to the copy. </p>
<p>Add negative values to subtract years.</p>
<dl class="since_2_26"><dt><b><a class="el" href="since_2_26.html#_since_2_26000012">Since glibmm 2.26:</a></b></dt><dd></dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">years</td><td>The number of years. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>The newly created <a class="el" href="classGlib_1_1DateTime.html" title="DateTime - A structure representing Date and Time. ">DateTime</a> which should be freed with g_date_time_unref(). </dd></dl>

</div>
</div>
<a class="anchor" id="a6119bf56393f0a1cfa682c8867dd605b"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int Glib::DateTime::compare </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classGlib_1_1DateTime.html">DateTime</a>&amp;&#160;</td>
          <td class="paramname"><em>other</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>A comparison function for DateTimes that is suitable as a CompareFunc. </p>
<dl class="since_2_26"><dt><b><a class="el" href="since_2_26.html#_since_2_26000021">Since glibmm 2.26:</a></b></dt><dd><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">other</td><td>The <a class="el" href="classGlib_1_1DateTime.html" title="DateTime - A structure representing Date and Time. ">DateTime</a> to compare with. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>-1, 0 or 1 if <em>*this</em> is less than, equal to or greater than <em>other</em>. </dd></dl>
</dd></dl>

</div>
</div>
<a class="anchor" id="aee0b3393970d11dc5533bf51233abb25"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="classGlib_1_1DateTime.html">DateTime</a> Glib::DateTime::create </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classGlib_1_1TimeZone.html">TimeZone</a>&amp;&#160;</td>
          <td class="paramname"><em>tz</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>year</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>month</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>day</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>hour</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>minute</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>seconds</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Creates a new <a class="el" href="classGlib_1_1DateTime.html" title="DateTime - A structure representing Date and Time. ">DateTime</a> corresponding to the given date and time in the time zone <em>tz</em>. </p>
<p>The <em>year</em> must be between 1 and 9999, <em>month</em> between 1 and 12 and <em>day</em> between 1 and 28, 29, 30 or 31 depending on the month and the year.</p>
<p><em>hour</em> must be between 0 and 23 and <em>minute</em> must be between 0 and 59.</p>
<p><em>seconds</em> must be at least 0.0 and must be strictly less than 60.0. It will be rounded down to the nearest microsecond.</p>
<p>If the given time is not representable in the given time zone (for example, 02:30 on March 14th 2010 in Toronto, due to daylight savings time) then the time will be rounded up to the nearest existing time (in this case, 03:00). If this matters to you then you should verify the return value for containing the same as the numbers you gave.</p>
<p>In the case that the given time is ambiguous in the given time zone (for example, 01:30 on November 7th 2010 in Toronto, due to daylight savings time) then the time falling within standard (ie: non-daylight) time is taken.</p>
<p>It not considered a programmer error for the values to this function to be out of range, but in the case that they are, the function will return <code>0</code>.</p>
<p>You should release the return value by calling g_date_time_unref() when you are done with it.</p>
<dl class="since_2_26"><dt><b><a class="el" href="since_2_26.html#_since_2_26000008">Since glibmm 2.26:</a></b></dt><dd></dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">tz</td><td>A <a class="el" href="classGlib_1_1TimeZone.html" title="TimeZone - A structure representing a time zone. ">TimeZone</a>. </td></tr>
    <tr><td class="paramname">year</td><td>The year component of the date. </td></tr>
    <tr><td class="paramname">month</td><td>The month component of the date. </td></tr>
    <tr><td class="paramname">day</td><td>The day component of the date. </td></tr>
    <tr><td class="paramname">hour</td><td>The hour component of the date. </td></tr>
    <tr><td class="paramname">minute</td><td>The minute component of the date. </td></tr>
    <tr><td class="paramname">seconds</td><td>The number of seconds past the minute. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>A new <a class="el" href="classGlib_1_1DateTime.html" title="DateTime - A structure representing Date and Time. ">DateTime</a>, or <code>0</code>. </dd></dl>

</div>
</div>
<a class="anchor" id="a377401c243100e1172341c6747339c27"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="classGlib_1_1DateTime.html">DateTime</a> Glib::DateTime::create_local </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>year</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>month</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>day</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>hour</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>minute</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>seconds</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Creates a new <a class="el" href="classGlib_1_1DateTime.html" title="DateTime - A structure representing Date and Time. ">DateTime</a> corresponding to the given date and time in the local time zone. </p>
<p>This call is equivalent to calling g_date_time_new() with the time zone returned by g_time_zone_new_local().</p>
<dl class="since_2_26"><dt><b><a class="el" href="since_2_26.html#_since_2_26000009">Since glibmm 2.26:</a></b></dt><dd></dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">year</td><td>The year component of the date. </td></tr>
    <tr><td class="paramname">month</td><td>The month component of the date. </td></tr>
    <tr><td class="paramname">day</td><td>The day component of the date. </td></tr>
    <tr><td class="paramname">hour</td><td>The hour component of the date. </td></tr>
    <tr><td class="paramname">minute</td><td>The minute component of the date. </td></tr>
    <tr><td class="paramname">seconds</td><td>The number of seconds past the minute. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>A <a class="el" href="classGlib_1_1DateTime.html" title="DateTime - A structure representing Date and Time. ">DateTime</a>, or <code>0</code>. </dd></dl>

</div>
</div>
<a class="anchor" id="ad48ba71c7573b26d636b125202843613"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="classGlib_1_1DateTime.html">DateTime</a> Glib::DateTime::create_now </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classGlib_1_1TimeZone.html">TimeZone</a>&amp;&#160;</td>
          <td class="paramname"><em>tz</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Creates a <a class="el" href="classGlib_1_1DateTime.html" title="DateTime - A structure representing Date and Time. ">DateTime</a> corresponding to this exact instant in the given time zone <em>tz</em>. </p>
<p>The time is as accurate as the system allows, to a maximum accuracy of 1 microsecond.</p>
<p>This function will always succeed unless the system clock is set to truly insane values (or unless GLib is still being used after the year 9999).</p>
<p>You should release the return value by calling g_date_time_unref() when you are done with it.</p>
<dl class="since_2_26"><dt><b><a class="el" href="since_2_26.html#_since_2_26000001">Since glibmm 2.26:</a></b></dt><dd></dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">tz</td><td>A <a class="el" href="classGlib_1_1TimeZone.html" title="TimeZone - A structure representing a time zone. ">TimeZone</a>. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>A new <a class="el" href="classGlib_1_1DateTime.html" title="DateTime - A structure representing Date and Time. ">DateTime</a>, or <code>0</code>. </dd></dl>

</div>
</div>
<a class="anchor" id="a15f3d384840951cbf993af14c7df0db8"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="classGlib_1_1DateTime.html">DateTime</a> Glib::DateTime::create_now_local </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Creates a <a class="el" href="classGlib_1_1DateTime.html" title="DateTime - A structure representing Date and Time. ">DateTime</a> corresponding to this exact instant in the local time zone. </p>
<p>This is equivalent to calling g_date_time_new_now() with the time zone returned by g_time_zone_new_local().</p>
<dl class="since_2_26"><dt><b><a class="el" href="since_2_26.html#_since_2_26000002">Since glibmm 2.26:</a></b></dt><dd></dd></dl>
<dl class="section return"><dt>Returns</dt><dd>A new <a class="el" href="classGlib_1_1DateTime.html" title="DateTime - A structure representing Date and Time. ">DateTime</a>, or <code>0</code>. </dd></dl>

</div>
</div>
<a class="anchor" id="abbeb5890f680e19af64d4d8ade4d6b33"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="classGlib_1_1DateTime.html">DateTime</a> Glib::DateTime::create_now_local </td>
          <td>(</td>
          <td class="paramtype">gint64&#160;</td>
          <td class="paramname"><em>t</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Creates a <a class="el" href="classGlib_1_1DateTime.html" title="DateTime - A structure representing Date and Time. ">DateTime</a> corresponding to the given Unix time <em>t</em> in the local time zone. </p>
<p>Unix time is the number of seconds that have elapsed since 1970-01-01 00:00:00 UTC, regardless of the local time offset.</p>
<p>This call can fail (returning <code>0</code>) if <em>t</em> represents a time outside of the supported range of <a class="el" href="classGlib_1_1DateTime.html" title="DateTime - A structure representing Date and Time. ">DateTime</a>.</p>
<p>You should release the return value by calling g_date_time_unref() when you are done with it.</p>
<dl class="since_2_26"><dt><b><a class="el" href="since_2_26.html#_since_2_26000004">Since glibmm 2.26:</a></b></dt><dd></dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">t</td><td>The Unix time. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>A new <a class="el" href="classGlib_1_1DateTime.html" title="DateTime - A structure representing Date and Time. ">DateTime</a>, or <code>0</code>. </dd></dl>

</div>
</div>
<a class="anchor" id="a990034c6ead5c34c22a9e989c4a3e4e3"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="classGlib_1_1DateTime.html">DateTime</a> Glib::DateTime::create_now_local </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="structGlib_1_1TimeVal.html">TimeVal</a>&amp;&#160;</td>
          <td class="paramname"><em>tv</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Creates a <a class="el" href="classGlib_1_1DateTime.html" title="DateTime - A structure representing Date and Time. ">DateTime</a> corresponding to the given <a class="el" href="structGlib_1_1TimeVal.html" title="Glib::TimeVal is a wrapper around the glib structure GTimeVal. ">TimeVal</a> <em>tv</em> in the local time zone. </p>
<p>The time contained in a <a class="el" href="structGlib_1_1TimeVal.html" title="Glib::TimeVal is a wrapper around the glib structure GTimeVal. ">TimeVal</a> is always stored in the form of seconds elapsed since 1970-01-01 00:00:00 UTC, regardless of the local time offset.</p>
<p>This call can fail (returning <code>0</code>) if <em>tv</em> represents a time outside of the supported range of <a class="el" href="classGlib_1_1DateTime.html" title="DateTime - A structure representing Date and Time. ">DateTime</a>.</p>
<p>You should release the return value by calling g_date_time_unref() when you are done with it.</p>
<dl class="since_2_26"><dt><b><a class="el" href="since_2_26.html#_since_2_26000006">Since glibmm 2.26:</a></b></dt><dd></dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">tv</td><td>A <a class="el" href="structGlib_1_1TimeVal.html" title="Glib::TimeVal is a wrapper around the glib structure GTimeVal. ">TimeVal</a>. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>A new <a class="el" href="classGlib_1_1DateTime.html" title="DateTime - A structure representing Date and Time. ">DateTime</a>, or <code>0</code>. </dd></dl>

</div>
</div>
<a class="anchor" id="a7fe96fc1d4eace42e2e45906717fc428"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="classGlib_1_1DateTime.html">DateTime</a> Glib::DateTime::create_now_utc </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Creates a <a class="el" href="classGlib_1_1DateTime.html" title="DateTime - A structure representing Date and Time. ">DateTime</a> corresponding to this exact instant in UTC. </p>
<p>This is equivalent to calling g_date_time_new_now() with the time zone returned by g_time_zone_new_utc().</p>
<dl class="since_2_26"><dt><b><a class="el" href="since_2_26.html#_since_2_26000003">Since glibmm 2.26:</a></b></dt><dd></dd></dl>
<dl class="section return"><dt>Returns</dt><dd>A new <a class="el" href="classGlib_1_1DateTime.html" title="DateTime - A structure representing Date and Time. ">DateTime</a>, or <code>0</code>. </dd></dl>

</div>
</div>
<a class="anchor" id="a2823b34b5116ad5e2bde0ec3c1eb1c30"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="classGlib_1_1DateTime.html">DateTime</a> Glib::DateTime::create_now_utc </td>
          <td>(</td>
          <td class="paramtype">gint64&#160;</td>
          <td class="paramname"><em>t</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Creates a <a class="el" href="classGlib_1_1DateTime.html" title="DateTime - A structure representing Date and Time. ">DateTime</a> corresponding to the given Unix time <em>t</em> in UTC. </p>
<p>Unix time is the number of seconds that have elapsed since 1970-01-01 00:00:00 UTC.</p>
<p>This call can fail (returning <code>0</code>) if <em>t</em> represents a time outside of the supported range of <a class="el" href="classGlib_1_1DateTime.html" title="DateTime - A structure representing Date and Time. ">DateTime</a>.</p>
<p>You should release the return value by calling g_date_time_unref() when you are done with it.</p>
<dl class="since_2_26"><dt><b><a class="el" href="since_2_26.html#_since_2_26000005">Since glibmm 2.26:</a></b></dt><dd></dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">t</td><td>The Unix time. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>A new <a class="el" href="classGlib_1_1DateTime.html" title="DateTime - A structure representing Date and Time. ">DateTime</a>, or <code>0</code>. </dd></dl>

</div>
</div>
<a class="anchor" id="ac3be9be4892d8f20147f7a94e0488113"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="classGlib_1_1DateTime.html">DateTime</a> Glib::DateTime::create_now_utc </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="structGlib_1_1TimeVal.html">TimeVal</a>&amp;&#160;</td>
          <td class="paramname"><em>tv</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Creates a <a class="el" href="classGlib_1_1DateTime.html" title="DateTime - A structure representing Date and Time. ">DateTime</a> corresponding to the given <a class="el" href="structGlib_1_1TimeVal.html" title="Glib::TimeVal is a wrapper around the glib structure GTimeVal. ">TimeVal</a> <em>tv</em> in UTC. </p>
<p>The time contained in a <a class="el" href="structGlib_1_1TimeVal.html" title="Glib::TimeVal is a wrapper around the glib structure GTimeVal. ">TimeVal</a> is always stored in the form of seconds elapsed since 1970-01-01 00:00:00 UTC.</p>
<p>This call can fail (returning <code>0</code>) if <em>tv</em> represents a time outside of the supported range of <a class="el" href="classGlib_1_1DateTime.html" title="DateTime - A structure representing Date and Time. ">DateTime</a>.</p>
<p>You should release the return value by calling g_date_time_unref() when you are done with it.</p>
<dl class="since_2_26"><dt><b><a class="el" href="since_2_26.html#_since_2_26000007">Since glibmm 2.26:</a></b></dt><dd></dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">tv</td><td>A <a class="el" href="structGlib_1_1TimeVal.html" title="Glib::TimeVal is a wrapper around the glib structure GTimeVal. ">TimeVal</a>. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>A new <a class="el" href="classGlib_1_1DateTime.html" title="DateTime - A structure representing Date and Time. ">DateTime</a>, or <code>0</code>. </dd></dl>

</div>
</div>
<a class="anchor" id="a6c46434388bad186f4f53988d925e110"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="classGlib_1_1DateTime.html">DateTime</a> Glib::DateTime::create_utc </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>year</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>month</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>day</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>hour</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>minute</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>seconds</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Creates a new <a class="el" href="classGlib_1_1DateTime.html" title="DateTime - A structure representing Date and Time. ">DateTime</a> corresponding to the given date and time in UTC. </p>
<p>This call is equivalent to calling g_date_time_new() with the time zone returned by g_time_zone_new_utc().</p>
<dl class="since_2_26"><dt><b><a class="el" href="since_2_26.html#_since_2_26000010">Since glibmm 2.26:</a></b></dt><dd></dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">year</td><td>The year component of the date. </td></tr>
    <tr><td class="paramname">month</td><td>The month component of the date. </td></tr>
    <tr><td class="paramname">day</td><td>The day component of the date. </td></tr>
    <tr><td class="paramname">hour</td><td>The hour component of the date. </td></tr>
    <tr><td class="paramname">minute</td><td>The minute component of the date. </td></tr>
    <tr><td class="paramname">seconds</td><td>The number of seconds past the minute. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>A <a class="el" href="classGlib_1_1DateTime.html" title="DateTime - A structure representing Date and Time. ">DateTime</a>, or <code>0</code>. </dd></dl>

</div>
</div>
<a class="anchor" id="a82511de9401c35535a8d67c27a5850c9"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="namespaceGlib.html#a5e89f93f6c0c052accc8c9185df26709">TimeSpan</a> Glib::DateTime::difference </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classGlib_1_1DateTime.html">DateTime</a>&amp;&#160;</td>
          <td class="paramname"><em>other</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Calculates the difference in time between <em>*this</em> and <em>other</em>. </p>
<p>The TimeSpan that is returned is effectively <em>*this</em> - <em>other</em>.</p>
<dl class="since_2_26"><dt><b><a class="el" href="since_2_26.html#_since_2_26000020">Since glibmm 2.26:</a></b></dt><dd><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">other</td><td>The other <a class="el" href="classGlib_1_1DateTime.html" title="DateTime - A structure representing Date and Time. ">DateTime</a>. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>The difference between the two <a class="el" href="classGlib_1_1DateTime.html" title="DateTime - A structure representing Date and Time. ">DateTime</a>, as a time span expressed in microseconds. </dd></dl>
</dd></dl>

</div>
</div>
<a class="anchor" id="abc30c94af854cc5a69ad6a87d5caf268"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool Glib::DateTime::equal </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classGlib_1_1DateTime.html">DateTime</a>&amp;&#160;</td>
          <td class="paramname"><em>other</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Checks to see if <em>*this</em> and <em>other</em> are equal. </p>
<p>Equal here means that they represent the same moment after converting them to the same time zone.</p>
<dl class="since_2_26"><dt><b><a class="el" href="since_2_26.html#_since_2_26000023">Since glibmm 2.26:</a></b></dt><dd><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">other</td><td>The <a class="el" href="classGlib_1_1DateTime.html" title="DateTime - A structure representing Date and Time. ">DateTime</a> to compare with. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd><code>true</code> if <em>*this</em> and <em>other</em> are equal. </dd></dl>
</dd></dl>

</div>
</div>
<a class="anchor" id="ae6106448b19d3a82cc2cdd94b7e2942a"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classGlib_1_1ustring.html">Glib::ustring</a> Glib::DateTime::format </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classGlib_1_1ustring.html">Glib::ustring</a>&amp;&#160;</td>
          <td class="paramname"><em>format</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Creates a newly allocated string representing the requested <em>format</em>. </p>
<p>The format strings understood by this function are a subset of the strftime() format language as specified by C99. The \D, \U and \W conversions are not supported, nor is the 'E' modifier. The GNU extensions \k, \l, \s and \P are supported, however, as are the '0', '_' and '-' modifiers.</p>
<p>In contrast to strftime(), this function always produces a UTF-8 string, regardless of the current locale. Note that the rendering of many formats is locale-dependent and may not match the strftime() output exactly.</p>
<p>The following format specifiers are supported:</p>
<ul>
<li>\a: the abbreviated weekday name according to the current locale</li>
<li>\A: the full weekday name according to the current locale</li>
<li>\b: the abbreviated month name according to the current locale</li>
<li>\B: the full month name according to the current locale</li>
<li>\c: the preferred date and time rpresentation for the current locale</li>
<li>\C: the century number (year/100) as a 2-digit integer (00-99)</li>
<li>\d: the day of the month as a decimal number (range 01 to 31)</li>
<li>\e: the day of the month as a decimal number (range 1 to 31)</li>
<li>\F: equivalent to <code>Y-m-d</code> (the ISO 8601 date format)</li>
<li>\g: the last two digits of the ISO 8601 week-based year as a decimal number (00-99). This works well with \V and \u.</li>
<li>\G: the ISO 8601 week-based year as a decimal number. This works well with \V and \u.</li>
<li>\h: equivalent to \b</li>
<li>\H: the hour as a decimal number using a 24-hour clock (range 00 to 23)</li>
<li>\I: the hour as a decimal number using a 12-hour clock (range 01 to 12)</li>
<li>\j: the day of the year as a decimal number (range 001 to 366)</li>
<li>\k: the hour (24-hour clock) as a decimal number (range 0 to 23); single digits are preceded by a blank</li>
<li>\l: the hour (12-hour clock) as a decimal number (range 1 to 12); single digits are preceded by a blank</li>
<li>\m: the month as a decimal number (range 01 to 12)</li>
<li>\M: the minute as a decimal number (range 00 to 59)</li>
<li>\p: either "AM" or "PM" according to the given time value, or the corresponding strings for the current locale. Noon is treated as "PM" and midnight as "AM".</li>
<li>\P: like \p but lowercase: "am" or "pm" or a corresponding string for the current locale</li>
<li>\r: the time in a.m. or p.m. notation</li>
<li>\R: the time in 24-hour notation (\H:\M)</li>
<li>\s: the number of seconds since the Epoch, that is, since 1970-01-01 00:00:00 UTC</li>
<li>\S: the second as a decimal number (range 00 to 60)</li>
<li>\t: a tab character</li>
<li>\T: the time in 24-hour notation with seconds (\H:\M:\S)</li>
<li>\u: the ISO 8601 standard day of the week as a decimal, range 1 to 7, Monday being 1. This works well with \G and \V.</li>
<li>\V: the ISO 8601 standard week number of the current year as a decimal number, range 01 to 53, where week 1 is the first week that has at least 4 days in the new year. See g_date_time_get_week_of_year(). This works well with \G and \u.</li>
<li>\w: the day of the week as a decimal, range 0 to 6, Sunday being 0. This is not the ISO 8601 standard format &#8211; use \u instead.</li>
<li>\x: the preferred date representation for the current locale without the time</li>
<li>\X: the preferred time representation for the current locale without the date</li>
<li>\y: the year as a decimal number without the century</li>
<li>\Y: the year as a decimal number including the century</li>
<li>\z: the time zone as an offset from UTC (+hhmm)</li>
<li>\%:z: the time zone as an offset from UTC (+hh:mm). This is a gnulib strftime() extension.<dl class="since_2_38"><dt><b><a class="el" href="since_2_38.html#_since_2_38000001">Since glibmm 2.38:</a></b></dt><dd></dd></dl>
</li>
</ul>
<p>Some conversion specifications can be modified by preceding the conversion specifier by one or more modifier characters. The following modifiers are supported for many of the numeric conversions:</p>
<ul>
<li>O: Use alternative numeric symbols, if the current locale supports those.</li>
<li>_: Pad a numeric result with spaces. This overrides the default padding for the specifier.</li>
<li>-: Do not pad a numeric result. This overrides the default padding for the specifier.</li>
<li>0: Pad a numeric result with zeros. This overrides the default padding for the specifier.</li>
</ul>
<dl class="since_2_26"><dt><b><a class="el" href="since_2_26.html#_since_2_26000045">Since glibmm 2.26:</a></b></dt><dd></dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">format</td><td>A valid UTF-8 string, containing the format for the <a class="el" href="classGlib_1_1DateTime.html" title="DateTime - A structure representing Date and Time. ">DateTime</a>. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>A newly allocated string formatted to the requested format or <code>0</code> in the case that there was an error. The string should be freed with g_free(). </dd></dl>

</div>
</div>
<a class="anchor" id="a465d7aff2bd93387814d2c4cbb59d7fa"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int Glib::DateTime::get_day_of_month </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Retrieves the day of the month represented by <em>datetime</em> in the gregorian calendar. </p>
<dl class="since_2_26"><dt><b><a class="el" href="since_2_26.html#_since_2_26000027">Since glibmm 2.26:</a></b></dt><dd></dd></dl>
<dl class="section return"><dt>Returns</dt><dd>The day of the month. </dd></dl>

</div>
</div>
<a class="anchor" id="ae8e1355802855d6de7661e44dce843c7"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int Glib::DateTime::get_day_of_week </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Retrieves the ISO 8601 day of the week on which <em>datetime</em> falls (1 is Monday, 2 is Tuesday... </p>
<p>7 is Sunday).</p>
<dl class="since_2_26"><dt><b><a class="el" href="since_2_26.html#_since_2_26000030">Since glibmm 2.26:</a></b></dt><dd></dd></dl>
<dl class="section return"><dt>Returns</dt><dd>The day of the week. </dd></dl>

</div>
</div>
<a class="anchor" id="a5bd2dec1108519633f5bc9e3022e4db5"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int Glib::DateTime::get_day_of_year </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Retrieves the day of the year represented by <em>datetime</em> in the Gregorian calendar. </p>
<dl class="since_2_26"><dt><b><a class="el" href="since_2_26.html#_since_2_26000031">Since glibmm 2.26:</a></b></dt><dd></dd></dl>
<dl class="section return"><dt>Returns</dt><dd>The day of the year. </dd></dl>

</div>
</div>
<a class="anchor" id="ac51d6cdcdfa5e10b8519a42e9b5de288"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int Glib::DateTime::get_hour </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Retrieves the hour of the day represented by <em>datetime</em>. </p>
<dl class="since_2_26"><dt><b><a class="el" href="since_2_26.html#_since_2_26000032">Since glibmm 2.26:</a></b></dt><dd></dd></dl>
<dl class="section return"><dt>Returns</dt><dd>The hour of the day. </dd></dl>

</div>
</div>
<a class="anchor" id="a42723abf75e9ac9a1fccf9a503316a2d"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int Glib::DateTime::get_microsecond </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Retrieves the microsecond of the date represented by <em>datetime</em>. </p>
<dl class="since_2_26"><dt><b><a class="el" href="since_2_26.html#_since_2_26000035">Since glibmm 2.26:</a></b></dt><dd></dd></dl>
<dl class="section return"><dt>Returns</dt><dd>The microsecond of the second. </dd></dl>

</div>
</div>
<a class="anchor" id="aef76a1424401b0908f8d4f650e7f935d"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int Glib::DateTime::get_minute </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Retrieves the minute of the hour represented by <em>datetime</em>. </p>
<dl class="since_2_26"><dt><b><a class="el" href="since_2_26.html#_since_2_26000033">Since glibmm 2.26:</a></b></dt><dd></dd></dl>
<dl class="section return"><dt>Returns</dt><dd>The minute of the hour. </dd></dl>

</div>
</div>
<a class="anchor" id="a7dd3d0949c3abd7fc235c4b79ce00d1e"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int Glib::DateTime::get_month </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Retrieves the month of the year represented by <em>datetime</em> in the Gregorian calendar. </p>
<dl class="since_2_26"><dt><b><a class="el" href="since_2_26.html#_since_2_26000026">Since glibmm 2.26:</a></b></dt><dd></dd></dl>
<dl class="section return"><dt>Returns</dt><dd>The month represented by <em>datetime</em>. </dd></dl>

</div>
</div>
<a class="anchor" id="ae1c5e4f766d5086aeca50e3b97c2a8a7"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int Glib::DateTime::get_second </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Retrieves the second of the minute represented by <em>datetime</em>. </p>
<dl class="since_2_26"><dt><b><a class="el" href="since_2_26.html#_since_2_26000034">Since glibmm 2.26:</a></b></dt><dd></dd></dl>
<dl class="section return"><dt>Returns</dt><dd>The second represented by <em>datetime</em>. </dd></dl>

</div>
</div>
<a class="anchor" id="abce64b186924b7208fa9296b6477d28a"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">double Glib::DateTime::get_seconds </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Retrieves the number of seconds since the start of the last minute, including the fractional part. </p>
<dl class="since_2_26"><dt><b><a class="el" href="since_2_26.html#_since_2_26000036">Since glibmm 2.26:</a></b></dt><dd></dd></dl>
<dl class="section return"><dt>Returns</dt><dd>The number of seconds. </dd></dl>

</div>
</div>
<a class="anchor" id="a7721e9388145449b5180fb2bdcd6d08e"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classGlib_1_1ustring.html">Glib::ustring</a> Glib::DateTime::get_timezone_abbreviation </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Determines the time zone abbreviation to be used at the time and in the time zone of <em>datetime</em>. </p>
<p>For example, in Toronto this is currently "EST" during the winter months and "EDT" during the summer months when daylight savings time is in effect.</p>
<dl class="since_2_26"><dt><b><a class="el" href="since_2_26.html#_since_2_26000040">Since glibmm 2.26:</a></b></dt><dd></dd></dl>
<dl class="section return"><dt>Returns</dt><dd>The time zone abbreviation. The returned string is owned by the <a class="el" href="classGlib_1_1DateTime.html" title="DateTime - A structure representing Date and Time. ">DateTime</a> and it should not be modified or freed. </dd></dl>

</div>
</div>
<a class="anchor" id="a21b707b52561ed560e396c60c4b7fa52"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="namespaceGlib.html#a5e89f93f6c0c052accc8c9185df26709">TimeSpan</a> Glib::DateTime::get_utc_offset </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Determines the offset to UTC in effect at the time and in the time zone of <em>datetime</em>. </p>
<p>The offset is the number of microseconds that you add to UTC time to arrive at local time for the time zone (ie: negative numbers for time zones west of GMT, positive numbers for east).</p>
<p>If <em>datetime</em> represents UTC time, then the offset is always zero.</p>
<dl class="since_2_26"><dt><b><a class="el" href="since_2_26.html#_since_2_26000039">Since glibmm 2.26:</a></b></dt><dd></dd></dl>
<dl class="section return"><dt>Returns</dt><dd>The number of microseconds that should be added to UTC to get the local time. </dd></dl>

</div>
</div>
<a class="anchor" id="abcaf8ade7fb7cdd3188177caf2f09a30"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int Glib::DateTime::get_week_numbering_year </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Returns the ISO 8601 week-numbering year in which the week containing <em>datetime</em> falls. </p>
<p>This function, taken together with g_date_time_get_week_of_year() and g_date_time_get_day_of_week() can be used to determine the full ISO week date on which <em>datetime</em> falls.</p>
<p>This is usually equal to the normal Gregorian year (as returned by g_date_time_get_year()), except as detailed below:</p>
<p>For Thursday, the week-numbering year is always equal to the usual calendar year. For other days, the number is such that every day within a complete week (Monday to Sunday) is contained within the same week-numbering year.</p>
<p>For Monday, Tuesday and Wednesday occurring near the end of the year, this may mean that the week-numbering year is one greater than the calendar year (so that these days have the same week-numbering year as the Thursday occurring early in the next year).</p>
<p>For Friday, Saturaday and Sunday occurring near the start of the year, this may mean that the week-numbering year is one less than the calendar year (so that these days have the same week-numbering year as the Thursday occurring late in the previous year).</p>
<p>An equivalent description is that the week-numbering year is equal to the calendar year containing the majority of the days in the current week (Monday to Sunday).</p>
<p>Note that January 1 0001 in the proleptic Gregorian calendar is a Monday, so this function never returns 0.</p>
<dl class="since_2_26"><dt><b><a class="el" href="since_2_26.html#_since_2_26000028">Since glibmm 2.26:</a></b></dt><dd></dd></dl>
<dl class="section return"><dt>Returns</dt><dd>The ISO 8601 week-numbering year for <em>datetime</em>. </dd></dl>

</div>
</div>
<a class="anchor" id="a3603c5796c447504dfea0978033f705c"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int Glib::DateTime::get_week_of_year </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Returns the ISO 8601 week number for the week containing <em>datetime</em>. </p>
<p>The ISO 8601 week number is the same for every day of the week (from Moday through Sunday). That can produce some unusual results (described below).</p>
<p>The first week of the year is week 1. This is the week that contains the first Thursday of the year. Equivalently, this is the first week that has more than 4 of its days falling within the calendar year.</p>
<p>The value 0 is never returned by this function. Days contained within a year but occurring before the first ISO 8601 week of that year are considered as being contained in the last week of the previous year. Similarly, the final days of a calendar year may be considered as being part of the first ISO 8601 week of the next year if 4 or more days of that week are contained within the new year.</p>
<dl class="since_2_26"><dt><b><a class="el" href="since_2_26.html#_since_2_26000029">Since glibmm 2.26:</a></b></dt><dd></dd></dl>
<dl class="section return"><dt>Returns</dt><dd>The ISO 8601 week number for <em>datetime</em>. </dd></dl>

</div>
</div>
<a class="anchor" id="a220d140aeeb7c8794bab7baee96c6b9f"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int Glib::DateTime::get_year </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Retrieves the year represented by <em>datetime</em> in the Gregorian calendar. </p>
<dl class="since_2_26"><dt><b><a class="el" href="since_2_26.html#_since_2_26000025">Since glibmm 2.26:</a></b></dt><dd></dd></dl>
<dl class="section return"><dt>Returns</dt><dd>The year represented by <em>datetime</em>. </dd></dl>

</div>
</div>
<a class="anchor" id="ac800e00909bd0e0c0b02d280af29bcaf"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Glib::DateTime::get_ymd </td>
          <td>(</td>
          <td class="paramtype">int &amp;&#160;</td>
          <td class="paramname"><em>year</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int &amp;&#160;</td>
          <td class="paramname"><em>month</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int &amp;&#160;</td>
          <td class="paramname"><em>day</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Retrieves the Gregorian day, month, and year of a given <a class="el" href="classGlib_1_1DateTime.html" title="DateTime - A structure representing Date and Time. ">DateTime</a>. </p>
<dl class="since_2_26"><dt><b><a class="el" href="since_2_26.html#_since_2_26000024">Since glibmm 2.26:</a></b></dt><dd></dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">year</td><td>The return location for the gregorian year, or <code>0</code>. </td></tr>
    <tr><td class="paramname">month</td><td>The return location for the month of the year, or <code>0</code>. </td></tr>
    <tr><td class="paramname">day</td><td>The return location for the day of the month, or <code>0</code>. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="aef6bffa86154c574827f3ef1b3a2012d"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">GDateTime* Glib::DateTime::gobj </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a class="anchor" id="a139cbc4f5494f70d8e084c14f2c679f7"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">const GDateTime* Glib::DateTime::gobj </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a class="anchor" id="a98671dd8d9508122f7b669e8b6b6f536"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">GDateTime* Glib::DateTime::gobj_copy </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Provides access to the underlying C instance. The caller is responsible for freeing it. Use when directly setting fields in structs. </p>

</div>
</div>
<a class="anchor" id="ac0ec361fe2621cc7374127b439c2a0a9"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">guint Glib::DateTime::hash </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Hashes <em>datetime</em> into a <code>unsigned int</code>, suitable for use within HashTable. </p>
<dl class="since_2_26"><dt><b><a class="el" href="since_2_26.html#_since_2_26000022">Since glibmm 2.26:</a></b></dt><dd></dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">datetime</td><td>A <a class="el" href="classGlib_1_1DateTime.html" title="DateTime - A structure representing Date and Time. ">DateTime</a>. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>A <code>unsigned int</code> containing the hash. </dd></dl>

</div>
</div>
<a class="anchor" id="afd141e1742670663f302e5d24e8f2e60"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool Glib::DateTime::is_daylight_savings </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Determines if daylight savings time is in effect at the time and in the time zone of <em>datetime</em>. </p>
<dl class="since_2_26"><dt><b><a class="el" href="since_2_26.html#_since_2_26000041">Since glibmm 2.26:</a></b></dt><dd></dd></dl>
<dl class="section return"><dt>Returns</dt><dd><code>true</code> if daylight savings time is in effect. </dd></dl>

</div>
</div>
<a class="anchor" id="ad4fb03d477fd3c930f06d7aa65a78c6a"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classGlib_1_1DateTime.html">DateTime</a>&amp; Glib::DateTime::operator= </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classGlib_1_1DateTime.html">DateTime</a>&amp;&#160;</td>
          <td class="paramname"><em>src</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a class="anchor" id="ad7edb0c4f14de146d16283ae3e11e78f"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classGlib_1_1DateTime.html">DateTime</a> Glib::DateTime::to_local </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Creates a new <a class="el" href="classGlib_1_1DateTime.html" title="DateTime - A structure representing Date and Time. ">DateTime</a> corresponding to the same instant in time as <em>datetime</em>, but in the local time zone. </p>
<p>This call is equivalent to calling g_date_time_to_timezone() with the time zone returned by g_time_zone_new_local().</p>
<dl class="since_2_26"><dt><b><a class="el" href="since_2_26.html#_since_2_26000043">Since glibmm 2.26:</a></b></dt><dd></dd></dl>
<dl class="section return"><dt>Returns</dt><dd>The newly created <a class="el" href="classGlib_1_1DateTime.html" title="DateTime - A structure representing Date and Time. ">DateTime</a>. </dd></dl>

</div>
</div>
<a class="anchor" id="a59901087079627bd73248f6b14d3f08f"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool Glib::DateTime::to_timeval </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structGlib_1_1TimeVal.html">TimeVal</a>&amp;&#160;</td>
          <td class="paramname"><em>tv</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Stores the instant in time that <em>datetime</em> represents into <em>tv</em>. </p>
<p>The time contained in a <a class="el" href="structGlib_1_1TimeVal.html" title="Glib::TimeVal is a wrapper around the glib structure GTimeVal. ">TimeVal</a> is always stored in the form of seconds elapsed since 1970-01-01 00:00:00 UTC, regardless of the time zone associated with <em>datetime</em>.</p>
<p>On systems where 'long' is 32bit (ie: all 32bit systems and all Windows systems), a <a class="el" href="structGlib_1_1TimeVal.html" title="Glib::TimeVal is a wrapper around the glib structure GTimeVal. ">TimeVal</a> is incapable of storing the entire range of values that <a class="el" href="classGlib_1_1DateTime.html" title="DateTime - A structure representing Date and Time. ">DateTime</a> is capable of expressing. On those systems, this function returns <code>false</code> to indicate that the time is out of range.</p>
<p>On systems where 'long' is 64bit, this function never fails.</p>
<dl class="since_2_26"><dt><b><a class="el" href="since_2_26.html#_since_2_26000038">Since glibmm 2.26:</a></b></dt><dd></dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">tv</td><td>A <a class="el" href="structGlib_1_1TimeVal.html" title="Glib::TimeVal is a wrapper around the glib structure GTimeVal. ">TimeVal</a> to modify. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd><code>true</code> if successful, else <code>false</code>. </dd></dl>

</div>
</div>
<a class="anchor" id="a96f0edc9204c6739c0a7ea235be35531"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classGlib_1_1DateTime.html">DateTime</a> Glib::DateTime::to_timezone </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classGlib_1_1TimeZone.html">TimeZone</a>&amp;&#160;</td>
          <td class="paramname"><em>tz</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Create a new <a class="el" href="classGlib_1_1DateTime.html" title="DateTime - A structure representing Date and Time. ">DateTime</a> corresponding to the same instant in time as <em>datetime</em>, but in the time zone <em>tz</em>. </p>
<p>This call can fail in the case that the time goes out of bounds. For example, converting 0001-01-01 00:00:00 UTC to a time zone west of Greenwich will fail (due to the year 0 being out of range).</p>
<p>You should release the return value by calling g_date_time_unref() when you are done with it.</p>
<dl class="since_2_26"><dt><b><a class="el" href="since_2_26.html#_since_2_26000042">Since glibmm 2.26:</a></b></dt><dd></dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">tz</td><td>The new <a class="el" href="classGlib_1_1TimeZone.html" title="TimeZone - A structure representing a time zone. ">TimeZone</a>. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>A new <a class="el" href="classGlib_1_1DateTime.html" title="DateTime - A structure representing Date and Time. ">DateTime</a>, or <code>0</code>. </dd></dl>

</div>
</div>
<a class="anchor" id="afbcdc4230ad98fe68e484da24d79b79f"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">gint64 Glib::DateTime::to_unix </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Gives the Unix time corresponding to <em>datetime</em>, rounding down to the nearest second. </p>
<p>Unix time is the number of seconds that have elapsed since 1970-01-01 00:00:00 UTC, regardless of the time zone associated with <em>datetime</em>.</p>
<dl class="since_2_26"><dt><b><a class="el" href="since_2_26.html#_since_2_26000037">Since glibmm 2.26:</a></b></dt><dd></dd></dl>
<dl class="section return"><dt>Returns</dt><dd>The Unix time corresponding to <em>datetime</em>. </dd></dl>

</div>
</div>
<a class="anchor" id="a732f91994ea5a1c48f3a6ad75fda6aba"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classGlib_1_1DateTime.html">DateTime</a> Glib::DateTime::to_utc </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Creates a new <a class="el" href="classGlib_1_1DateTime.html" title="DateTime - A structure representing Date and Time. ">DateTime</a> corresponding to the same instant in time as <em>datetime</em>, but in UTC. </p>
<p>This call is equivalent to calling g_date_time_to_timezone() with the time zone returned by g_time_zone_new_utc().</p>
<dl class="since_2_26"><dt><b><a class="el" href="since_2_26.html#_since_2_26000044">Since glibmm 2.26:</a></b></dt><dd></dd></dl>
<dl class="section return"><dt>Returns</dt><dd>The newly created <a class="el" href="classGlib_1_1DateTime.html" title="DateTime - A structure representing Date and Time. ">DateTime</a>. </dd></dl>

</div>
</div>
<h2 class="groupheader">Friends And Related Function Documentation</h2>
<a class="anchor" id="ae0c5dfdc4615424386bbf46d1181580e"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classGlib_1_1DateTime.html">Glib::DateTime</a> wrap </td>
          <td>(</td>
          <td class="paramtype">GDateTime *&#160;</td>
          <td class="paramname"><em>object</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>take_copy</em> = <code>false</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">related</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>A <a class="el" href="namespaceGlib.html#a671306f4a3a0cae5ab4d7a9d54886592">Glib::wrap()</a> method for this object. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">object</td><td>The C instance. </td></tr>
    <tr><td class="paramname">take_copy</td><td>False if the result should take ownership of the C instance. True if it should take a new copy or ref. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>A C++ instance that wraps this C instance. </dd></dl>

</div>
</div>
<h2 class="groupheader">Member Data Documentation</h2>
<a class="anchor" id="a89d0ade6e43a96039d52f666610e17c4"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">GDateTime* Glib::DateTime::gobject_</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Mon Sep 22 2014 21:38:33 for glibmm by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.7
</small></address>
</body>
</html>