Index: Source/platform/DateComponents.cpp |
diff --git a/Source/platform/DateComponents.cpp b/Source/platform/DateComponents.cpp |
index a781e1c7de86715c1d754d439a7f6bd196fee523..64939a78a3aa4dda032449edf9ef51abb5a47c5b 100644 |
--- a/Source/platform/DateComponents.cpp |
+++ b/Source/platform/DateComponents.cpp |
@@ -81,6 +81,11 @@ static int dayOfWeek(int year, int month, int day) |
return result; |
} |
+int DateComponents::weekDay() const |
+{ |
+ return dayOfWeek(m_year, m_month, m_monthDay); |
+} |
+ |
int DateComponents::maxWeekNumberInYear() const |
{ |
int day = dayOfWeek(m_year, 0, 1); // January 1. |