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

Side by Side Diff: Source/platform/DateComponents.h

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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | Source/platform/DateComponents.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2009 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 Month, 67 Month,
68 Time, 68 Time,
69 Week, 69 Week,
70 }; 70 };
71 71
72 int millisecond() const { return m_millisecond; } 72 int millisecond() const { return m_millisecond; }
73 int second() const { return m_second; } 73 int second() const { return m_second; }
74 int minute() const { return m_minute; } 74 int minute() const { return m_minute; }
75 int hour() const { return m_hour; } 75 int hour() const { return m_hour; }
76 int monthDay() const { return m_monthDay; } 76 int monthDay() const { return m_monthDay; }
77 int weekDay() const;
77 int month() const { return m_month; } 78 int month() const { return m_month; }
78 int fullYear() const { return m_year; } 79 int fullYear() const { return m_year; }
79 int week() const { return m_week; } 80 int week() const { return m_week; }
80 Type type() const { return m_type; } 81 Type type() const { return m_type; }
81 82
82 enum SecondFormat { 83 enum SecondFormat {
83 None, // Suppress the second part and the millisecond part if they are 0 . 84 None, // Suppress the second part and the millisecond part if they are 0 .
84 Second, // Always show the second part, and suppress the millisecond par t if it is 0. 85 Second, // Always show the second part, and suppress the millisecond par t if it is 0.
85 Millisecond // Always show the second part and the millisecond part. 86 Millisecond // Always show the second part and the millisecond part.
86 }; 87 };
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
205 int m_year; // 1582 - 206 int m_year; // 1582 -
206 int m_week; // 1 - 53 207 int m_week; // 1 - 53
207 208
208 Type m_type; 209 Type m_type;
209 }; 210 };
210 211
211 212
212 } // namespace WebCore 213 } // namespace WebCore
213 214
214 #endif // DateComponents_h 215 #endif // DateComponents_h
OLDNEW
« no previous file with comments | « no previous file | Source/platform/DateComponents.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698