aboutsummaryrefslogtreecommitdiffstats
path: root/src/dateTime.cpp
diff options
context:
space:
mode:
authorVincent Richard <[email protected]>2006-04-24 19:40:24 +0000
committerVincent Richard <[email protected]>2006-04-24 19:40:24 +0000
commit01ba89706002dcd9d24c6901853c5b8805e5d5cb (patch)
treeb158e8d6e98a2a9023416eb45969a961b157c51c /src/dateTime.cpp
parentFolder deletion. (diff)
downloadvmime-01ba89706002dcd9d24c6901853c5b8805e5d5cb.tar.gz
vmime-01ba89706002dcd9d24c6901853c5b8805e5d5cb.zip
Week of year calculation.
Diffstat (limited to 'src/dateTime.cpp')
-rw-r--r--src/dateTime.cpp1
1 files changed, 1 insertions, 0 deletions
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); }