███████████-converter: added.

This commit is contained in:
Alexey Milovidov 2011-06-03 21:02:20 +00:00
parent 9d4a5cf65f
commit a11485e186

View File

@ -98,11 +98,16 @@ public:
return Yandex::DateLUTSingleton::instance().makeDate(m_year, m_month, m_day); return Yandex::DateLUTSingleton::instance().makeDate(m_year, m_month, m_day);
} }
operator Yandex::DayNum_t() const Yandex::DayNum_t getDayNum() const
{ {
return Yandex::DateLUTSingleton::instance().makeDayNum(m_year, m_month, m_day); return Yandex::DateLUTSingleton::instance().makeDayNum(m_year, m_month, m_day);
} }
operator Yandex::DayNum_t() const
{
return getDayNum();
}
unsigned short year() const { return m_year; } unsigned short year() const { return m_year; }
unsigned char month() const { return m_month; } unsigned char month() const { return m_month; }
unsigned char day() const { return m_day; } unsigned char day() const { return m_day; }