⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 classodbc_1_1_date.html.svn-base

📁 絲路server源碼 Silk Road server source
💻 SVN-BASE
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"><title>odbc::Date class Reference</title><link href="doxygen.css" rel="stylesheet" type="text/css"></head><body bgcolor="#ffffff"><!-- Generated by Doxygen 1.2.13.1 --><center><a class="qindex" href="index.html">Main Page</a> &nbsp; <a class="qindex" href="namespaces.html">Namespace List</a> &nbsp; <a class="qindex" href="hierarchy.html">Class Hierarchy</a> &nbsp; <a class="qindex" href="annotated.html">Compound List</a> &nbsp; <a class="qindex" href="files.html">File List</a> &nbsp; <a class="qindex" href="namespacemembers.html">Namespace Members</a> &nbsp; <a class="qindex" href="functions.html">Compound Members</a> &nbsp; </center><hr><h1>odbc::Date  Class Reference</h1>An SQL DATE. <a href="#_details">More...</a><p><code>#include &lt;<a class="el" href="types_8h-source.html">types.h</a>&gt;</code><p><p>Inheritance diagram for odbc::Date::<p><center><img src="classodbc_1_1_date.gif" usemap="#odbc::Date_map" border="0"></center><map name="odbc::Date_map"><area href="classodbc_1_1_timestamp.html" alt="odbc::Timestamp" shape="rect" coords="0,56,104,80"></map><a href="classodbc_1_1_date-members.html">List of all members.</a><h2>Public Methods</h2><ul><li><a name="a0" doxytag="odbc::Date::Date"></a><a class="el" href="classodbc_1_1_date.html#a0">Date</a> (int year, int month, int day)<dl class="el"><dd><font size=-1><em>Constructor.<br><br></em></font></dl><li><a class="el" href="classodbc_1_1_date.html#a1">Date</a> ()<dl class="el"><dd><font size=-1><em>Constructor.</em> <a href="#a1">More...</a><em><br><br></em></font></dl><li><a class="el" href="classodbc_1_1_date.html#a2">Date</a> (std::time_t t)<dl class="el"><dd><font size=-1><em>Constructor.</em> <a href="#a2">More...</a><em><br><br></em></font></dl><li><a class="el" href="classodbc_1_1_date.html#a3">Date</a> (const std::string &amp;str)<dl class="el"><dd><font size=-1><em>Constructor.</em> <a href="#a3">More...</a><em><br><br></em></font></dl><li><a name="a4" doxytag="odbc::Date::Date"></a><a class="el" href="classodbc_1_1_date.html#a4">Date</a> (const Date &amp;d)<dl class="el"><dd><font size=-1><em>Copy constructor.<br><br></em></font></dl><li><a name="a5" doxytag="odbc::Date::operator="></a>Date &amp; <a class="el" href="classodbc_1_1_date.html#a5">operator=</a> (const Date &amp;d)<dl class="el"><dd><font size=-1><em>Assignment operator.<br><br></em></font></dl><li><a name="a6" doxytag="odbc::Date::~Date"></a>virtual <a class="el" href="classodbc_1_1_date.html#a6">~Date</a> ()<dl class="el"><dd><font size=-1><em>Destructor.<br><br></em></font></dl><li><a name="a7" doxytag="odbc::Date::setTime"></a>virtual void <a class="el" href="classodbc_1_1_date.html#a7">setTime</a> (std::time_t t)<dl class="el"><dd><font size=-1><em>Sets this date to the specified time_t value.<br><br></em></font></dl><li><a name="a8" doxytag="odbc::Date::getTime"></a>std::time_t <a class="el" href="classodbc_1_1_date.html#a8">getTime</a> () const<dl class="el"><dd><font size=-1><em>Returns the time_t value of <code>00:00:00</code> at this date.<br><br></em></font></dl><li><a name="a9" doxytag="odbc::Date::parse"></a>void <a class="el" href="classodbc_1_1_date.html#a9">parse</a> (const std::string &amp;str)<dl class="el"><dd><font size=-1><em>Sets this date from a string in the <code>YYYY-MM-DD</code> format.<br><br></em></font></dl><li><a name="a10" doxytag="odbc::Date::getYear"></a>int <a class="el" href="classodbc_1_1_date.html#a10">getYear</a> () const<dl class="el"><dd><font size=-1><em>Gets the year of this date.<br><br></em></font></dl><li><a name="a11" doxytag="odbc::Date::getMonth"></a>int <a class="el" href="classodbc_1_1_date.html#a11">getMonth</a> () const<dl class="el"><dd><font size=-1><em>Gets the month of this date.<br><br></em></font></dl><li><a name="a12" doxytag="odbc::Date::getDay"></a>int <a class="el" href="classodbc_1_1_date.html#a12">getDay</a> () const<dl class="el"><dd><font size=-1><em>Gets the monthday of this date.<br><br></em></font></dl><li><a name="a13" doxytag="odbc::Date::setYear"></a>void <a class="el" href="classodbc_1_1_date.html#a13">setYear</a> (int year)<dl class="el"><dd><font size=-1><em>Sets the year of this date.<br><br></em></font></dl><li><a name="a14" doxytag="odbc::Date::setMonth"></a>void <a class="el" href="classodbc_1_1_date.html#a14">setMonth</a> (int month)<dl class="el"><dd><font size=-1><em>Sets the month of this date.<br><br></em></font></dl><li><a name="a15" doxytag="odbc::Date::setDay"></a>void <a class="el" href="classodbc_1_1_date.html#a15">setDay</a> (int day)<dl class="el"><dd><font size=-1><em>Sets the day of this date.<br><br></em></font></dl><li><a name="a16" doxytag="odbc::Date::toString"></a>virtual std::string <a class="el" href="classodbc_1_1_date.html#a16">toString</a> () const<dl class="el"><dd><font size=-1><em>Gets the date as a string in the <code>YYYY-MM-DD</code> format.<br><br></em></font></dl></ul><hr><a name="_details"></a><h2>Detailed Description</h2>An SQL DATE.<p><hr><h2>Constructor &amp; Destructor Documentation</h2><a name="a1" doxytag="odbc::Date::Date"></a><p><table width="100%" cellpadding="2" cellspacing="0" border="0">  <tr>    <td class="md">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top"> odbc::Date::Date </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="mdname1" valign="top" nowrap>&nbsp;          </td>          <td class="md" valign="top">)&nbsp;</td>          <td class="md" nowrap><code> [explicit]</code></td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>Constructor.<p>Sets this date to today.     </td>  </tr></table><a name="a2" doxytag="odbc::Date::Date"></a><p><table width="100%" cellpadding="2" cellspacing="0" border="0">  <tr>    <td class="md">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top"> odbc::Date::Date </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">std::time_t&nbsp;</td>          <td class="mdname1" valign="top" nowrap>&nbsp; <em>t</em>          </td>          <td class="md" valign="top">)&nbsp;</td>          <td class="md" nowrap></td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>Constructor.<p>Sets this date to the specified time_t value.     </td>  </tr></table><a name="a3" doxytag="odbc::Date::Date"></a><p><table width="100%" cellpadding="2" cellspacing="0" border="0">  <tr>    <td class="md">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top"> odbc::Date::Date </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">const std::string &amp;&nbsp;</td>          <td class="mdname1" valign="top" nowrap>&nbsp; <em>str</em>          </td>          <td class="md" valign="top">)&nbsp;</td>          <td class="md" nowrap></td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>Constructor.<p>Sets this date to the specified string in the <code>YYYY-MM-DD</code> format.     </td>  </tr></table><hr>The documentation for this class was generated from the following file:<ul><li>odbc++/<a class="el" href="types_8h-source.html">types.h</a></ul><hr><div align=center><a class=footer href="http://orcane.net/freeodbc++/">Go back to the freeodbc++ homepage</a></div>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -