From 01ba89706002dcd9d24c6901853c5b8805e5d5cb Mon Sep 17 00:00:00 2001 From: Vincent Richard Date: Mon, 24 Apr 2006 19:40:24 +0000 Subject: Week of year calculation. --- src/dateTime.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/dateTime.cpp') diff --git a/src/dateTime.cpp b/src/dateTime.cpp index 1af0554e..f3ba2396 100644 --- a/src/dateTime.cpp +++ b/src/dateTime.cpp @@ -794,6 +794,7 @@ const int datetime::getMinute() const { return (m_minute); } const int datetime::getSecond() const { return (m_second); } const int datetime::getZone() const { return (m_zone); } const int datetime::getWeekDay() const { return (utility::datetimeUtils::getDayOfWeek(m_year, m_month, m_day)); } +const int datetime::getWeek() const { return utility::datetimeUtils::getWeekOfYear(m_year, m_month, m_day); } void datetime::setYear(const int year) { m_year = year; } void datetime::setMonth(const int month) { m_month = std::min(std::max(month, 1), 12); } -- cgit v1.2.3