Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1957)

Unified Diff: Source/platform/DateComponents.cpp

Issue 288733002: Kill WTF::GregorianDateTime class (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/platform/DateComponents.h ('k') | Source/platform/mhtml/MHTMLArchive.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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.
« no previous file with comments | « Source/platform/DateComponents.h ('k') | Source/platform/mhtml/MHTMLArchive.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698