📄 classodbc_1_1_time.html.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::Time 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> <a class="qindex" href="namespaces.html">Namespace List</a> <a class="qindex" href="hierarchy.html">Class Hierarchy</a> <a class="qindex" href="annotated.html">Compound List</a> <a class="qindex" href="files.html">File List</a> <a class="qindex" href="namespacemembers.html">Namespace Members</a> <a class="qindex" href="functions.html">Compound Members</a> </center><hr><h1>odbc::Time Class Reference</h1>An SQL TIME. <a href="#_details">More...</a><p><code>#include <<a class="el" href="types_8h-source.html">types.h</a>></code><p><p>Inheritance diagram for odbc::Time::<p><center><img src="classodbc_1_1_time.gif" usemap="#odbc::Time_map" border="0"></center><map name="odbc::Time_map"><area href="classodbc_1_1_timestamp.html" alt="odbc::Timestamp" shape="rect" coords="0,56,104,80"></map><a href="classodbc_1_1_time-members.html">List of all members.</a><h2>Public Methods</h2><ul><li><a name="a0" doxytag="odbc::Time::Time"></a><a class="el" href="classodbc_1_1_time.html#a0">Time</a> (int hour, int minute, int second)<dl class="el"><dd><font size=-1><em>Constructor.<br><br></em></font></dl><li><a class="el" href="classodbc_1_1_time.html#a1">Time</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_time.html#a2">Time</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_time.html#a3">Time</a> (const std::string &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::Time::Time"></a><a class="el" href="classodbc_1_1_time.html#a4">Time</a> (const Time &t)<dl class="el"><dd><font size=-1><em>Copy constructor.<br><br></em></font></dl><li><a name="a5" doxytag="odbc::Time::operator="></a>Time & <a class="el" href="classodbc_1_1_time.html#a5">operator=</a> (const Time &t)<dl class="el"><dd><font size=-1><em>Assignment operator.<br><br></em></font></dl><li><a name="a6" doxytag="odbc::Time::~Time"></a>virtual <a class="el" href="classodbc_1_1_time.html#a6">~Time</a> ()<dl class="el"><dd><font size=-1><em>Destructor.<br><br></em></font></dl><li><a name="a7" doxytag="odbc::Time::setTime"></a>virtual void <a class="el" href="classodbc_1_1_time.html#a7">setTime</a> (std::time_t t)<dl class="el"><dd><font size=-1><em>Sets the time to the specified <code>time_t</code> value.<br><br></em></font></dl><li><a name="a8" doxytag="odbc::Time::getTime"></a>std::time_t <a class="el" href="classodbc_1_1_time.html#a8">getTime</a> () const<dl class="el"><dd><font size=-1><em>Returns the <code>time_t</code> value of <code>1970-01-01</code> at this time.<br><br></em></font></dl><li><a name="a9" doxytag="odbc::Time::parse"></a>void <a class="el" href="classodbc_1_1_time.html#a9">parse</a> (const std::string &str)<dl class="el"><dd><font size=-1><em>Sets this time from a string in the <code>HH:MM:SS</code> format.<br><br></em></font></dl><li><a name="a10" doxytag="odbc::Time::getHour"></a>int <a class="el" href="classodbc_1_1_time.html#a10">getHour</a> () const<dl class="el"><dd><font size=-1><em>Gets the hour of this time.<br><br></em></font></dl><li><a name="a11" doxytag="odbc::Time::getMinute"></a>int <a class="el" href="classodbc_1_1_time.html#a11">getMinute</a> () const<dl class="el"><dd><font size=-1><em>Gets the minute of this time.<br><br></em></font></dl><li><a name="a12" doxytag="odbc::Time::getSecond"></a>int <a class="el" href="classodbc_1_1_time.html#a12">getSecond</a> () const<dl class="el"><dd><font size=-1><em>Gets the second of this time.<br><br></em></font></dl><li><a name="a13" doxytag="odbc::Time::setHour"></a>void <a class="el" href="classodbc_1_1_time.html#a13">setHour</a> (int h)<dl class="el"><dd><font size=-1><em>Sets the hour of this time.<br><br></em></font></dl><li><a name="a14" doxytag="odbc::Time::setMinute"></a>void <a class="el" href="classodbc_1_1_time.html#a14">setMinute</a> (int m)<dl class="el"><dd><font size=-1><em>Sets the minute of this time.<br><br></em></font></dl><li><a name="a15" doxytag="odbc::Time::setSecond"></a>void <a class="el" href="classodbc_1_1_time.html#a15">setSecond</a> (int s)<dl class="el"><dd><font size=-1><em>Sets the second of this time.<br><br></em></font></dl></ul><hr><a name="_details"></a><h2>Detailed Description</h2>An SQL TIME.<p><hr><h2>Constructor & Destructor Documentation</h2><a name="a1" doxytag="odbc::Time::Time"></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::Time::Time </td> <td class="md" valign="top">( </td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top">) </td> <td class="md" nowrap><code> [explicit]</code></td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>Constructor.<p>Sets the time to now. </td> </tr></table><a name="a2" doxytag="odbc::Time::Time"></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::Time::Time </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">std::time_t </td> <td class="mdname1" valign="top" nowrap> <em>t</em> </td> <td class="md" valign="top">) </td> <td class="md" nowrap></td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>Constructor.<p>Sets the time to the specified <code>time_t</code> value. </td> </tr></table><a name="a3" doxytag="odbc::Time::Time"></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::Time::Time </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">const std::string & </td> <td class="mdname1" valign="top" nowrap> <em>str</em> </td> <td class="md" valign="top">) </td> <td class="md" nowrap></td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>Constructor.<p>Sets the time to the specified string in the <code>HH:MM:SS</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 + -