ISO8601d: Added ::toMDY
This commit is contained in:
@@ -840,6 +840,16 @@ bool ISO8601p::parse (const std::string& input, std::string::size_type& start)
|
||||
return false;
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
void ISO8601d::toMDY (int& m, int& d, int& y)
|
||||
{
|
||||
struct tm* t = localtime (&_date);
|
||||
|
||||
m = t->tm_mon + 1;
|
||||
d = t->tm_mday;
|
||||
y = t->tm_year + 1900;
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
ISO8601d ISO8601d::startOfDay () const
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user