ISO8601d: Added ::hour, ::minute, ::second
This commit is contained in:
@@ -968,6 +968,27 @@ int ISO8601d::dayOfYear () const
|
||||
return t->tm_yday + 1;
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
int ISO8601d::hour () const
|
||||
{
|
||||
struct tm* t = localtime (&_date);
|
||||
return t->tm_hour;
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
int ISO8601d::minute () const
|
||||
{
|
||||
struct tm* t = localtime (&_date);
|
||||
return t->tm_min;
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
int ISO8601d::second () const
|
||||
{
|
||||
struct tm* t = localtime (&_date);
|
||||
return t->tm_sec;
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
void ISO8601p::clear ()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user