From a11485e186f9caf2a01f3c1aef25f0fccdb6d554 Mon Sep 17 00:00:00 2001 From: Alexey Milovidov Date: Fri, 3 Jun 2011 21:02:20 +0000 Subject: [PATCH] =?UTF-8?q?=E2=96=88=E2=96=88=E2=96=88=E2=96=88=E2=96=88?= =?UTF-8?q?=E2=96=88=E2=96=88=E2=96=88=E2=96=88=E2=96=88=E2=96=88-converte?= =?UTF-8?q?r:=20added.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- libs/libmysqlxx/include/mysqlxx/Date.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/libs/libmysqlxx/include/mysqlxx/Date.h b/libs/libmysqlxx/include/mysqlxx/Date.h index 4363ac0b53e..0bbd0dd9873 100644 --- a/libs/libmysqlxx/include/mysqlxx/Date.h +++ b/libs/libmysqlxx/include/mysqlxx/Date.h @@ -98,11 +98,16 @@ public: 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); } + operator Yandex::DayNum_t() const + { + return getDayNum(); + } + unsigned short year() const { return m_year; } unsigned char month() const { return m_month; } unsigned char day() const { return m_day; }