|
|
|
@ -266,6 +266,20 @@ public:
|
|
|
|
|
void SerializeHourMinSec(Stream & out) const;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
this method outputs to the given stream: MM-DD, eg. 02-12 (02 month, 12 day)
|
|
|
|
|
*/
|
|
|
|
|
template<class Stream>
|
|
|
|
|
void SerializeMonthDay(Stream & out) const;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
this method outputs to the given stream: HH:MM, eg: 13:05
|
|
|
|
|
*/
|
|
|
|
|
template<class Stream>
|
|
|
|
|
void SerializeHourMin(Stream & out) const;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
this method outputs to the given stream: YYYY-MM-DD HH:MM:SS, eg: 1990-02-12 13:05:39
|
|
|
|
|
ISO 8601 format
|
|
|
|
@ -527,6 +541,24 @@ void Date::SerializeHourMinSec(Stream & out) const
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
template<class Stream>
|
|
|
|
|
void Date::SerializeMonthDay(Stream & out) const
|
|
|
|
|
{
|
|
|
|
|
SerializeInt(out, month);
|
|
|
|
|
out << '-';
|
|
|
|
|
SerializeInt(out, day);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
template<class Stream>
|
|
|
|
|
void Date::SerializeHourMin(Stream & out) const
|
|
|
|
|
{
|
|
|
|
|
SerializeInt(out, hour);
|
|
|
|
|
out << ':';
|
|
|
|
|
SerializeInt(out, min);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
template<class Stream>
|
|
|
|
|
void Date::Serialize(Stream & out) const
|
|
|
|
|
{
|
|
|
|
|