ISO8601d: Added ::year
This commit is contained in:
@@ -926,6 +926,13 @@ int ISO8601d::day () const
|
||||
return t->tm_mday;
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
int ISO8601d::year () const
|
||||
{
|
||||
struct tm* t = localtime (&_date);
|
||||
return t->tm_year + 1900;
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
void ISO8601p::clear ()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user