Sophie

Sophie

distrib > Fedora > 15 > i386 > by-pkgid > 54cac1c2268db633d66eeff1b4faa585 > files > 325

frepple-doc-0.8.1-3.fc15.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"/>
<title>C++ API frePPLe: frepple::utils::Date Class Reference</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
<link href="tabs.css" rel="stylesheet" type="text/css">
<link href="../styles.css" rel="stylesheet"  type="text/css">
</head>
<body>
<div id="container">

<div id="menubar"> 
<div id="logo" align="center">
<br/><img src='../frepple.bmp' alt="frepple" /><br/>
<a href='http://www.frepple.com/'>
<strong>a Free<br/>Production Planning<br/>Library</strong>
</a>
</div>
<div id="menu">
<br/>
<h3><a href='../Main/HomePage.html'>Main</a></h3>
<h3><a href='../UI/Main.html'>User Manual</a></h3>
<h3><a href='../Tutorial/Main.html'>Tutorial</a></h3>
<h3><a href='../Frepple/Main.html'>Reference Manual</a></h3>
<h3><a href='../Main/FAQ.html'>FAQ</a></h3>
<h3><a href='index.html'>C++ API</a></h3>
<br/>
</div>  
</div>

<div id="content">
<br/>
<!-- Generated by Doxygen 1.6.1 -->
<div class="navigation" id="top">
  <div class="tabs">
    <ul>
      <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
      <li><a href="pages.html"><span>Related&nbsp;Pages</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="files.html"><span>Files</span></a></li>
      <li><a href="dirs.html"><span>Directories</span></a></li>
    </ul>
  </div>
  <div class="tabs">
    <ul>
      <li><a href="annotated.html"><span>Class&nbsp;List</span></a></li>
      <li><a href="classes.html"><span>Class&nbsp;Index</span></a></li>
      <li><a href="hierarchy.html"><span>Class&nbsp;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&nbsp;Members</span></a></li>
    </ul>
  </div>
  <div class="navpath"><a class="el" href="a00256.html">frepple</a>::<a class="el" href="a00257.html">utils</a>::<a class="el" href="a00049.html">Date</a>
  </div>
</div>
<div class="contents">
<h1>frepple::utils::Date Class Reference</h1><!-- doxytag: class="frepple::utils::Date" -->
<p>This class represents a date and time with an accuracy of one second.  
<a href="#_details">More...</a></p>

<p><code>#include &lt;<a class="el" href="a00252_source.html">utils.h</a>&gt;</code></p>

<p><a href="a00572.html">List of all members.</a></p>
<table border="0" cellpadding="0" cellspacing="0">
<tr><td colspan="2"><h2>Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00049.html#a3e5f8abac352db7a543d66ef3227de97">Date</a> (int year, int month, int day, int hr=0, int min=0, int sec=0)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00049.html#acfb1caade0b7dfe8d69401c50f8cf13c">Date</a> (const char *s)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00049.html#a65f49376e4266e27a80ca17bf5f15caa">Date</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">time_t&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00049.html#ad47644c16f9e9740192f6de3c0e582a5">getTicks</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00049.html#a5c3527a5644c7d1a919221309a564ce2">operator bool</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00049.html#ab61c65ff71cca67f94f312052c415ceb">operator string</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00049.html#a67347c707fed1cfde9c4e1a63f5d74d8">operator!</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00049.html#a316d46bfcebf7dcf118dc3cd89fcdc69">operator!=</a> (const <a class="el" href="a00049.html">Date</a> &amp;b) const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="a00049.html">Date</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00049.html#a9a1dc2e1718c5f094bc5712634d39cd4">operator+</a> (const <a class="el" href="a00179.html">TimePeriod</a> &amp;l) const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00049.html#ad51cc1554e8f0da5948a2b06d7dbbd8d">operator+=</a> (const <a class="el" href="a00179.html">TimePeriod</a> &amp;l)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="a00179.html">TimePeriod</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00049.html#a5bd00dc0c3caf433d2ff4bc78044bb38">operator-</a> (const <a class="el" href="a00049.html">Date</a> &amp;l) const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="a00049.html">Date</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00049.html#af0193a5ec992af106226e54645f15493">operator-</a> (const <a class="el" href="a00179.html">TimePeriod</a> &amp;l) const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00049.html#ae866096de77464e20f00e24c0f3add87">operator-=</a> (const <a class="el" href="a00179.html">TimePeriod</a> &amp;l)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00049.html#ae7c05d7c027449cc2d555927630cb03e">operator&lt;</a> (const <a class="el" href="a00049.html">Date</a> &amp;b) const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00049.html#a3f2483573cc7fe5d38066589dc966fc9">operator&lt;=</a> (const <a class="el" href="a00049.html">Date</a> &amp;b) const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00049.html#a0c7976c121b729cd371e2fd64d6e10c2">operator=</a> (const <a class="el" href="a00049.html">Date</a> &amp;b)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00049.html#a817a21c9fab308cf0df3fc7a83e1e506">operator==</a> (const <a class="el" href="a00049.html">Date</a> &amp;b) const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00049.html#a246ec13783cfe82ce8fe3c3e2de2869e">operator&gt;</a> (const <a class="el" href="a00049.html">Date</a> &amp;b) const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00049.html#aa3740c6819a6898dc32215b209b2cc02">operator&gt;=</a> (const <a class="el" href="a00049.html">Date</a> &amp;b) const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00049.html#a054e8502d7c37b8e0d430b468b47c174">parse</a> (const char *, const string &amp;=format)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">size_t&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00049.html#adad155c208392a9f4e6a00cd1300d258">toCharBuffer</a> (char *) const </td></tr>
<tr><td colspan="2"><h2>Static Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static string&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00049.html#a49440e95d4d8213063143736a3cb4e49">getFormat</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static <a class="el" href="a00049.html">Date</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00049.html#ad203bd74ddc1e3b7b961f77fa60388f6">now</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00049.html#a389fddfeec8c99a0dc9fe033f3b494d9">setFormat</a> (const string &amp;n)</td></tr>
<tr><td colspan="2"><h2>Static Public Attributes</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static const <a class="el" href="a00049.html">Date</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00049.html#a1e4384af7e9cac081e5001245b8cae67">infiniteFuture</a></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static const <a class="el" href="a00049.html">Date</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00049.html#ab6b35eef8d34856f11d962478ec68783">infinitePast</a></td></tr>
<tr><td colspan="2"><h2>Friends</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">ostream &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00049.html#a8a0e31b0e008f351714d2db14d3a7280">operator&lt;&lt;</a> (ostream &amp;, const <a class="el" href="a00049.html">Date</a> &amp;)</td></tr>
</table>
<hr/><a name="_details"></a><h2>Detailed Description</h2>
<p>This class represents a date and time with an accuracy of one second. </p>

<p>Definition at line <a class="el" href="a00252_source.html#l01742">1742</a> of file <a class="el" href="a00252_source.html">utils.h</a>.</p>
<hr/><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="a65f49376e4266e27a80ca17bf5f15caa"></a><!-- doxytag: member="frepple::utils::Date::Date" ref="a65f49376e4266e27a80ca17bf5f15caa" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">frepple::utils::Date::Date </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Default constructor. </p>

<p>Definition at line <a class="el" href="a00252_source.html#l01793">1793</a> of file <a class="el" href="a00252_source.html">utils.h</a>.</p>

</div>
</div>
<a class="anchor" id="acfb1caade0b7dfe8d69401c50f8cf13c"></a><!-- doxytag: member="frepple::utils::Date::Date" ref="acfb1caade0b7dfe8d69401c50f8cf13c" args="(const char *s)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">frepple::utils::Date::Date </td>
          <td>(</td>
          <td class="paramtype">const char *&nbsp;</td>
          <td class="paramname"> <em>s</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Constructor initialized with a string. The string needs to be in the format specified by the "format". </p>

<p>Definition at line <a class="el" href="a00252_source.html#l01800">1800</a> of file <a class="el" href="a00252_source.html">utils.h</a>.</p>

</div>
</div>
<a class="anchor" id="a3e5f8abac352db7a543d66ef3227de97"></a><!-- doxytag: member="frepple::utils::Date::Date" ref="a3e5f8abac352db7a543d66ef3227de97" args="(int year, int month, int day, int hr=0, int min=0, int sec=0)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">frepple::utils::Date::Date </td>
          <td>(</td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>year</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>month</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>day</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>hr</em> = <code>0</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>min</em> = <code>0</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>sec</em> = <code>0</code></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Constructor with year, month and day as arguments. Hours, minutes and seconds can optionally be passed too. </p>

<p>Definition at line <a class="el" href="a00198_source.html#l00247">247</a> of file <a class="el" href="a00198_source.html">date.cpp</a>.</p>

</div>
</div>
<hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="a49440e95d4d8213063143736a3cb4e49"></a><!-- doxytag: member="frepple::utils::Date::getFormat" ref="a49440e95d4d8213063143736a3cb4e49" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static string frepple::utils::Date::getFormat </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [inline, static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Retrieves the default date format. </p>

<p>Definition at line <a class="el" href="a00252_source.html#l01897">1897</a> of file <a class="el" href="a00252_source.html">utils.h</a>.</p>

</div>
</div>
<a class="anchor" id="ad47644c16f9e9740192f6de3c0e582a5"></a><!-- doxytag: member="frepple::utils::Date::getTicks" ref="ad47644c16f9e9740192f6de3c0e582a5" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">time_t frepple::utils::Date::getTicks </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Return the seconds since the epoch, which is also the internal representation of a date. </p>

<p>Definition at line <a class="el" href="a00252_source.html#l01888">1888</a> of file <a class="el" href="a00252_source.html">utils.h</a>.</p>

</div>
</div>
<a class="anchor" id="ad203bd74ddc1e3b7b961f77fa60388f6"></a><!-- doxytag: member="frepple::utils::Date::now" ref="ad203bd74ddc1e3b7b961f77fa60388f6" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="a00049.html">Date</a> frepple::utils::Date::now </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [inline, static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Static function returns a date object initialized with the current <a class="el" href="a00049.html" title="This class represents a date and time with an accuracy of one second.">Date</a> and time. </p>

<p>Definition at line <a class="el" href="a00252_source.html#l01867">1867</a> of file <a class="el" href="a00252_source.html">utils.h</a>.</p>

</div>
</div>
<a class="anchor" id="a5c3527a5644c7d1a919221309a564ce2"></a><!-- doxytag: member="frepple::utils::Date::operator bool" ref="a5c3527a5644c7d1a919221309a564ce2" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">frepple::utils::Date::operator bool </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Check whether the date has been initialized. </p>

<p>Definition at line <a class="el" href="a00252_source.html#l01863">1863</a> of file <a class="el" href="a00252_source.html">utils.h</a>.</p>

</div>
</div>
<a class="anchor" id="ab61c65ff71cca67f94f312052c415ceb"></a><!-- doxytag: member="frepple::utils::Date::operator string" ref="ab61c65ff71cca67f94f312052c415ceb" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">frepple::utils::Date::operator string </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Converts the date to a string. The format can be controlled by the <a class="el" href="a00049.html#a389fddfeec8c99a0dc9fe033f3b494d9">setFormat()</a> function. </p>

<p>Definition at line <a class="el" href="a00252_source.html#l01871">1871</a> of file <a class="el" href="a00252_source.html">utils.h</a>.</p>

</div>
</div>
<a class="anchor" id="a67347c707fed1cfde9c4e1a63f5d74d8"></a><!-- doxytag: member="frepple::utils::Date::operator!" ref="a67347c707fed1cfde9c4e1a63f5d74d8" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool frepple::utils::Date::operator! </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Check whether the date has been initialized. </p>

<p>Definition at line <a class="el" href="a00252_source.html#l01860">1860</a> of file <a class="el" href="a00252_source.html">utils.h</a>.</p>

</div>
</div>
<a class="anchor" id="a316d46bfcebf7dcf118dc3cd89fcdc69"></a><!-- doxytag: member="frepple::utils::Date::operator!=" ref="a316d46bfcebf7dcf118dc3cd89fcdc69" args="(const Date &amp;b) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool frepple::utils::Date::operator!= </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="a00049.html">Date</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>b</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Inequality of dates. </p>

<p>Definition at line <a class="el" href="a00252_source.html#l01819">1819</a> of file <a class="el" href="a00252_source.html">utils.h</a>.</p>

</div>
</div>
<a class="anchor" id="a9a1dc2e1718c5f094bc5712634d39cd4"></a><!-- doxytag: member="frepple::utils::Date::operator+" ref="a9a1dc2e1718c5f094bc5712634d39cd4" args="(const TimePeriod &amp;l) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="a00049.html">Date</a> frepple::utils::Date::operator+ </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="a00179.html">TimePeriod</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>l</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Adding a time to a date returns a new date. </p>

<p>Definition at line <a class="el" href="a00252_source.html#l01839">1839</a> of file <a class="el" href="a00252_source.html">utils.h</a>.</p>

</div>
</div>
<a class="anchor" id="ad51cc1554e8f0da5948a2b06d7dbbd8d"></a><!-- doxytag: member="frepple::utils::Date::operator+=" ref="ad51cc1554e8f0da5948a2b06d7dbbd8d" args="(const TimePeriod &amp;l)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void frepple::utils::Date::operator+= </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="a00179.html">TimePeriod</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>l</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Adds some time to this date. </p>

<p>Definition at line <a class="el" href="a00252_source.html#l01831">1831</a> of file <a class="el" href="a00252_source.html">utils.h</a>.</p>

</div>
</div>
<a class="anchor" id="a5bd00dc0c3caf433d2ff4bc78044bb38"></a><!-- doxytag: member="frepple::utils::Date::operator&#45;" ref="a5bd00dc0c3caf433d2ff4bc78044bb38" args="(const Date &amp;l) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="a00179.html">TimePeriod</a> frepple::utils::Date::operator- </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="a00049.html">Date</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>l</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Subtracting two date values returns the time difference in a <a class="el" href="a00179.html" title="This class represents a time duration with an accuracy of one second.">TimePeriod</a> object. </p>

<p>Definition at line <a class="el" href="a00252_source.html#l01856">1856</a> of file <a class="el" href="a00252_source.html">utils.h</a>.</p>

</div>
</div>
<a class="anchor" id="af0193a5ec992af106226e54645f15493"></a><!-- doxytag: member="frepple::utils::Date::operator&#45;" ref="af0193a5ec992af106226e54645f15493" args="(const TimePeriod &amp;l) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="a00049.html">Date</a> frepple::utils::Date::operator- </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="a00179.html">TimePeriod</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>l</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Subtracting a time from a date returns a new date. </p>

<p>Definition at line <a class="el" href="a00252_source.html#l01847">1847</a> of file <a class="el" href="a00252_source.html">utils.h</a>.</p>

</div>
</div>
<a class="anchor" id="ae866096de77464e20f00e24c0f3add87"></a><!-- doxytag: member="frepple::utils::Date::operator&#45;=" ref="ae866096de77464e20f00e24c0f3add87" args="(const TimePeriod &amp;l)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void frepple::utils::Date::operator-= </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="a00179.html">TimePeriod</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>l</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Subtracts some time to this date. </p>

<p>Definition at line <a class="el" href="a00252_source.html#l01835">1835</a> of file <a class="el" href="a00252_source.html">utils.h</a>.</p>

</div>
</div>
<a class="anchor" id="ae7c05d7c027449cc2d555927630cb03e"></a><!-- doxytag: member="frepple::utils::Date::operator&lt;" ref="ae7c05d7c027449cc2d555927630cb03e" args="(const Date &amp;b) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool frepple::utils::Date::operator&lt; </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="a00049.html">Date</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>b</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Comparison between dates. </p>

<p>Definition at line <a class="el" href="a00252_source.html#l01810">1810</a> of file <a class="el" href="a00252_source.html">utils.h</a>.</p>

</div>
</div>
<a class="anchor" id="a3f2483573cc7fe5d38066589dc966fc9"></a><!-- doxytag: member="frepple::utils::Date::operator&lt;=" ref="a3f2483573cc7fe5d38066589dc966fc9" args="(const Date &amp;b) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool frepple::utils::Date::operator&lt;= </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="a00049.html">Date</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>b</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Comparison between dates. </p>

<p>Definition at line <a class="el" href="a00252_source.html#l01825">1825</a> of file <a class="el" href="a00252_source.html">utils.h</a>.</p>

</div>
</div>
<a class="anchor" id="a0c7976c121b729cd371e2fd64d6e10c2"></a><!-- doxytag: member="frepple::utils::Date::operator=" ref="a0c7976c121b729cd371e2fd64d6e10c2" args="(const Date &amp;b)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void frepple::utils::Date::operator= </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="a00049.html">Date</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>b</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Assignment operator. </p>

<p>Definition at line <a class="el" href="a00252_source.html#l01828">1828</a> of file <a class="el" href="a00252_source.html">utils.h</a>.</p>

</div>
</div>
<a class="anchor" id="a817a21c9fab308cf0df3fc7a83e1e506"></a><!-- doxytag: member="frepple::utils::Date::operator==" ref="a817a21c9fab308cf0df3fc7a83e1e506" args="(const Date &amp;b) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool frepple::utils::Date::operator== </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="a00049.html">Date</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>b</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Equality of dates. </p>

<p>Definition at line <a class="el" href="a00252_source.html#l01816">1816</a> of file <a class="el" href="a00252_source.html">utils.h</a>.</p>

</div>
</div>
<a class="anchor" id="a246ec13783cfe82ce8fe3c3e2de2869e"></a><!-- doxytag: member="frepple::utils::Date::operator&gt;" ref="a246ec13783cfe82ce8fe3c3e2de2869e" args="(const Date &amp;b) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool frepple::utils::Date::operator&gt; </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="a00049.html">Date</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>b</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Comparison between dates. </p>

<p>Definition at line <a class="el" href="a00252_source.html#l01813">1813</a> of file <a class="el" href="a00252_source.html">utils.h</a>.</p>

</div>
</div>
<a class="anchor" id="aa3740c6819a6898dc32215b209b2cc02"></a><!-- doxytag: member="frepple::utils::Date::operator&gt;=" ref="aa3740c6819a6898dc32215b209b2cc02" args="(const Date &amp;b) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool frepple::utils::Date::operator&gt;= </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="a00049.html">Date</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>b</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Comparison between dates. </p>

<p>Definition at line <a class="el" href="a00252_source.html#l01822">1822</a> of file <a class="el" href="a00252_source.html">utils.h</a>.</p>

</div>
</div>
<a class="anchor" id="a054e8502d7c37b8e0d430b468b47c174"></a><!-- doxytag: member="frepple::utils::Date::parse" ref="a054e8502d7c37b8e0d430b468b47c174" args="(const char *, const string &amp;=format)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void frepple::utils::Date::parse </td>
          <td>(</td>
          <td class="paramtype">const char *&nbsp;</td>
          <td class="paramname"> <em>s</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const string &amp;&nbsp;</td>
          <td class="paramname"> <em>fmt</em> = <code>format</code></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Function that parses a string according to the format string. </p>

<p>Definition at line <a class="el" href="a00198_source.html#l00230">230</a> of file <a class="el" href="a00198_source.html">date.cpp</a>.</p>

</div>
</div>
<a class="anchor" id="a389fddfeec8c99a0dc9fe033f3b494d9"></a><!-- doxytag: member="frepple::utils::Date::setFormat" ref="a389fddfeec8c99a0dc9fe033f3b494d9" args="(const string &amp;n)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static void frepple::utils::Date::setFormat </td>
          <td>(</td>
          <td class="paramtype">const string &amp;&nbsp;</td>
          <td class="paramname"> <em>n</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [inline, static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Updates the default date format. </p>

<p>Definition at line <a class="el" href="a00252_source.html#l01894">1894</a> of file <a class="el" href="a00252_source.html">utils.h</a>.</p>

</div>
</div>
<a class="anchor" id="adad155c208392a9f4e6a00cd1300d258"></a><!-- doxytag: member="frepple::utils::Date::toCharBuffer" ref="adad155c208392a9f4e6a00cd1300d258" args="(char *) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">size_t frepple::utils::Date::toCharBuffer </td>
          <td>(</td>
          <td class="paramtype">char *&nbsp;</td>
          <td class="paramname"> <em>str</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>This function fills a character buffer with a text representation of the date.<br/>
 The character buffer passed is expected to have room for at least 30 characters. 30 characters should be sufficient for even the most funky date format. </p>

<p>Definition at line <a class="el" href="a00198_source.html#l00124">124</a> of file <a class="el" href="a00198_source.html">date.cpp</a>.</p>

</div>
</div>
<hr/><h2>Friends And Related Function Documentation</h2>
<a class="anchor" id="a8a0e31b0e008f351714d2db14d3a7280"></a><!-- doxytag: member="frepple::utils::Date::operator&lt;&lt;" ref="a8a0e31b0e008f351714d2db14d3a7280" args="(ostream &amp;, const Date &amp;)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ostream&amp; operator&lt;&lt; </td>
          <td>(</td>
          <td class="paramtype">ostream &amp;&nbsp;</td>
          <td class="paramname">, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="a00049.html">Date</a> &amp;&nbsp;</td>
          <td class="paramname"></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td><code> [friend]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<hr/><h2>Member Data Documentation</h2>
<a class="anchor" id="a1e4384af7e9cac081e5001245b8cae67"></a><!-- doxytag: member="frepple::utils::Date::infiniteFuture" ref="a1e4384af7e9cac081e5001245b8cae67" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const <a class="el" href="a00049.html">Date</a> <a class="el" href="a00049.html#a1e4384af7e9cac081e5001245b8cae67">frepple::utils::Date::infiniteFuture</a><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>A constant representing the infinite future, i.e. the latest time which we can represent.<br/>
 This value is currently set to 2030-12-31T00:00:00. </p>

<p>Definition at line <a class="el" href="a00252_source.html#l01909">1909</a> of file <a class="el" href="a00252_source.html">utils.h</a>.</p>

</div>
</div>
<a class="anchor" id="ab6b35eef8d34856f11d962478ec68783"></a><!-- doxytag: member="frepple::utils::Date::infinitePast" ref="ab6b35eef8d34856f11d962478ec68783" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const <a class="el" href="a00049.html">Date</a> <a class="el" href="a00049.html#ab6b35eef8d34856f11d962478ec68783">frepple::utils::Date::infinitePast</a><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>A constant representing the infinite past, i.e. the earliest time which we can represent.<br/>
 This value is normally 1971-01-01T00:00:00. </p>

<p>Definition at line <a class="el" href="a00252_source.html#l01903">1903</a> of file <a class="el" href="a00252_source.html">utils.h</a>.</p>

</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li><a class="el" href="a00252_source.html">utils.h</a></li>
<li><a class="el" href="a00198_source.html">date.cpp</a></li>
</ul>
</div>
<hr size="1"/><address style="align: right;"><small>Documentation generated for frePPLe by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"/></a></small></address>
</div>
</div>
</body>
</html>