📄 timeget.htm
字号:
occurs.
<em>t</em> is the struct tm in which the time field is
stored.
Returns This method returns an iterator that points
immediately beyond the last character of the valid
time field.
</pre>
<h3>Description</h3>
<p>
The do_get_time() method reads the characters from the
character sequence (s,end] until it has extracted the time field. The results are stored
in the appropriate member of the struct tm <em>t</em>. If an error occurs, then <em>err</em> will be set to
ios_base::failbit. It returns an iterator that points immediately beyond the last character
of the valid time field.
</p>
<hr>
<pre>
<a name="do-get-year">
Method do_get_year()</a>
Access Protected
Classification Accessor
Syntax virtual iter_type do_get_year(iter_type s,
iter_type end,
ios_base& str,
ios_base::iostate& err,
tm *t) const;
Parameters <em>s</em> is an input iterator that points to the
beginning character of a character sequence.
<em>end</em> is an input iterator that points to the
end character of a character sequence.
<em>str</em> is the reference to the ios_base object.
<em>err</em> is set to ios_base::failbit when an error
occurs.
<em>t</em> is the struct tm in which the year field
is stored.
Returns The method returns an iterator that points
immediately beyond the last character of the valid
year field.
</pre>
<h3>Description</h3>
<p>
The do_get_year() method reads the characters from the
character sequence (s,end] until it has extracted the year field. The manner in which
the year is represented is implementation-defined. The results are stored
in the appropriate member of the struct tm <em>t</em>. If an error occurs, then <em>err</em> will be set to
ios_base::failbit. It returns an iterator that points immediately beyond the last character
of the valid year field.
</p>
<hr>
<pre>
<a name="get-date">
Method get_date()</a>
Access Public
Classification Accessor
Syntax iter_type get_date(iter_type s, iter_type end,
ios_base& str,
ios_base::iostate& err,
tm *t) const;
Parameters <em>s</em> is an input iterator that points to the
beginning character of a character sequence.
<em>end</em> is an input iterator that points to the
end character of a character sequence.
<em>str</em> is the reference to the ios_base object.
<em>err</em> is set to ios_base::failbit when an error
occurs.
<em>t</em> is the struct tm in which the date field is
stored.
Returns The method returns an iterator that points
immediately beyond the last character of the valid
date field.
</pre>
<h3>Description</h3>
<p>
The get_date() method returns do_get_date(s, end, str, err, t).
</p>
<hr>
<pre>
<a name="get-weekday">
Method get_weekday()</a>
Access Public
Classification Accessor
Syntax iter_type get_weekday(iter_type s, iter_type end,
ios_base& str,
ios_base::iostate& err,
tm *t) const;
Parameters <em>s</em> is an input iterator that points to the
beginning character of a character sequence.
<em>end</em> is an input iterator that points to the
end character of a character sequence.
<em>str</em> is the reference to the ios_base object.
<em>err</em> is set to ios_base::failbit when an error
occurs.
<em>t</em> is the struct tm in which the weekday field is
stored.
Returns The method returns an iterator that points
immediately beyond the last character of the valid
weekday field.
</pre>
<h3>Description</h3>
<p>
The get_weekday() method returns do_get_weekday(s, end, str, err, t).
</p>
<hr>
<pre>
<a name="get-monthname">
Method get_monthname()</a>
Access Public
Classification Accessor
Syntax iter_type get_monthname(iter_type s, iter_type end,
ios_base& str,
ios_base::iostate& err,
tm *t) const;
Parameters <em>s</em> is an input iterator that points to the
beginning character of a character sequence.
<em>end</em> is an input iterator that points to the
end character of a character sequence.
<em>str</em> is the reference to the ios_base object.
<em>err</em> is set to ios_base::failbit when an error
occurs.
<em>t</em> is the struct tm in which the month name field
is stored.
Returns The method returns an iterator that points
immediately beyond the last character of the valid
month name field.
</pre>
<h3>Description</h3>
<p>
The get_monthname() member function returns do_get_monthname(s, end, str, err, t).
</p>
<hr>
<pre>
<a name="get-year">
Method get_year()</a>
Access Public
Classification Accessor
Syntax iter_type get_year(iter_type s, iter_type end,
ios_base& str,
ios_base::iostate& err,
tm *t) const;
Parameters <em>s</em> is an input iterator that points to the
beginning character of a character sequence.
<em>end</em> is an input iterator that points to the
end character of a character sequence.
<em>str</em> is the reference to the ios_base object.
<em>err</em> is set to ios_base::failbit when an error
occurs.
<em>t</em> is the struct tm in which the year field is
stored.
Returns The method returns an iterator that points
immediately beyond the last character of the valid
year field.
</pre>
<h3>Description</h3>
<p>
The get_year() member function returns do_get_year(s, end, str, err, t).
</p>
<hr>
<pre>
<a name="get-time">
Method get_time()</a>
Access Public
Classification Accessor
Syntax iter_type get_time(iter_type s, iter_type end,
ios_base& str,
ios_base::iostate& err,
tm *t) const;
Parameters <em>s</em> is an input iterator that points to the
beginning character of a character sequence.
<em>end</em> is an input iterator that points to the
end character of a character sequence.
<em>str</em> is the reference to the ios_base object.
<em>err</em> is set to ios_base::failbit when an error
occurs.
<em>t</em> is the struct tm in which the time field is
stored.
Returns The method returns an iterator that points
immediately beyond the last character of the valid
time field.
</pre>
<h3>Description</h3>
<p>
The get_time() member function returns do_get_time(s, end, str, err, t).
</p>
<hr>
<pre>
<a name="time-get">
Method time_get()</a>
Access Public
Classification Constructor
Syntax explicit time_get(size_t refs = 0);
Parameters <em>refs</em>, if the refs argument = 0 then the destruction
of the object is delegated to the locale or locales
which contain it. If refs = 1 then the object must
be explicitly deleted. The locale will not delete
it. The object can then be maintained across the
lifetime of multiple locales.
Returns None
</pre>
<h3>Description</h3>
<p>
This constructor constructs a time_get facet object.
</p>
<hr>
<pre>
<a name="~time-get">
Method time_get()</a>
Access Protected
Classification Destructor
Syntax ~time_get();
Parameters None
Returns None
</pre>
<h3>Description</h3>
<p>
This destructor destroys a time_get facet object.
</p>
<hr>
<a name="crd"><h2>The Class Relationship Diagram for time_get</h2></a>
<img src="timeget.gif">
<hr>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -