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

📄 classodbc_1_1_timestamp.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::Timestamp 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::Timestamp  Class Reference</h1>An SQL TIMESTAMP. <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::Timestamp::<p><center><img src="classodbc_1_1_timestamp.gif" usemap="#odbc::Timestamp_map" border="0"></center><map name="odbc::Timestamp_map"><area href="classodbc_1_1_date.html" alt="odbc::Date" shape="rect" coords="0,0,104,24"><area href="classodbc_1_1_time.html" alt="odbc::Time" shape="rect" coords="114,0,218,24"></map><a href="classodbc_1_1_timestamp-members.html">List of all members.</a><h2>Public Methods</h2><ul><li><a name="a0" doxytag="odbc::Timestamp::Timestamp"></a><a class="el" href="classodbc_1_1_timestamp.html#a0">Timestamp</a> (int year, int month, int day, int hour, int minute, int second, int nanos=0)<dl class="el"><dd><font size=-1><em>Constructor.<br><br></em></font></dl><li><a class="el" href="classodbc_1_1_timestamp.html#a1">Timestamp</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_timestamp.html#a2">Timestamp</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_timestamp.html#a3">Timestamp</a> (const std::string &amp;s)<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::Timestamp::Timestamp"></a><a class="el" href="classodbc_1_1_timestamp.html#a4">Timestamp</a> (const Timestamp &amp;t)<dl class="el"><dd><font size=-1><em>Copy constructor.<br><br></em></font></dl><li><a name="a5" doxytag="odbc::Timestamp::operator="></a>Timestamp &amp; <a class="el" href="classodbc_1_1_timestamp.html#a5">operator=</a> (const Timestamp &amp;t)<dl class="el"><dd><font size=-1><em>Assignment operator.<br><br></em></font></dl><li><a name="a6" doxytag="odbc::Timestamp::~Timestamp"></a>virtual <a class="el" href="classodbc_1_1_timestamp.html#a6">~Timestamp</a> ()<dl class="el"><dd><font size=-1><em>Destructor.<br><br></em></font></dl><li><a name="a7" doxytag="odbc::Timestamp::setTime"></a>virtual void <a class="el" href="classodbc_1_1_timestamp.html#a7">setTime</a> (std::time_t t)<dl class="el"><dd><font size=-1><em>Sets this timestamp to the specified <code>time_t</code> value.<br><br></em></font></dl><li><a name="a8" doxytag="odbc::Timestamp::getTime"></a>virtual std::time_t <a class="el" href="classodbc_1_1_timestamp.html#a8">getTime</a> ()<dl class="el"><dd><font size=-1><em>Gets the time_t value of this timestamp.<br><br></em></font></dl><li><a name="a9" doxytag="odbc::Timestamp::parse"></a>void <a class="el" href="classodbc_1_1_timestamp.html#a9">parse</a> (const std::string &amp;s)<dl class="el"><dd><font size=-1><em>Set this timestamp from a <code>YYYY-MM-DD HH:MM:SS[.NNN...]</code> format.<br><br></em></font></dl><li><a name="a10" doxytag="odbc::Timestamp::getNanos"></a>int <a class="el" href="classodbc_1_1_timestamp.html#a10">getNanos</a> () const<dl class="el"><dd><font size=-1><em>Gets the nanoseconds value of this timestamp.<br><br></em></font></dl><li><a name="a11" doxytag="odbc::Timestamp::setNanos"></a>void <a class="el" href="classodbc_1_1_timestamp.html#a11">setNanos</a> (int nanos)<dl class="el"><dd><font size=-1><em>Sets the nanoseconds value of this timestamp.<br><br></em></font></dl><li><a name="a12" doxytag="odbc::Timestamp::toString"></a>virtual std::string <a class="el" href="classodbc_1_1_timestamp.html#a12">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 TIMESTAMP.<p><hr><h2>Constructor &amp; Destructor Documentation</h2><a name="a1" doxytag="odbc::Timestamp::Timestamp"></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::Timestamp::Timestamp </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 the timestamp to now.     </td>  </tr></table><a name="a2" doxytag="odbc::Timestamp::Timestamp"></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::Timestamp::Timestamp </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 timestamp to the specified <code>time_t</code> value.     </td>  </tr></table><a name="a3" doxytag="odbc::Timestamp::Timestamp"></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::Timestamp::Timestamp </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>s</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 timestamp from a <code>YYYY-MM-DD HH:MM:SS[.NNN...]</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 + -