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

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

Issue 1156393004: Remove unused method DateComponents::parseDateTime() (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 6 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
« 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 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 // Sets year and month. 106 // Sets year and month.
107 bool parseMonth(const String&, unsigned start, unsigned& end); 107 bool parseMonth(const String&, unsigned start, unsigned& end);
108 // Sets year, month and monthDay. 108 // Sets year, month and monthDay.
109 bool parseDate(const String&, unsigned start, unsigned& end); 109 bool parseDate(const String&, unsigned start, unsigned& end);
110 // Sets year and week. 110 // Sets year and week.
111 bool parseWeek(const String&, unsigned start, unsigned& end); 111 bool parseWeek(const String&, unsigned start, unsigned& end);
112 // Sets hour, minute, second and millisecond. 112 // Sets hour, minute, second and millisecond.
113 bool parseTime(const String&, unsigned start, unsigned& end); 113 bool parseTime(const String&, unsigned start, unsigned& end);
114 // Sets year, month, monthDay, hour, minute, second and millisecond. 114 // Sets year, month, monthDay, hour, minute, second and millisecond.
115 bool parseDateTimeLocal(const String&, unsigned start, unsigned& end); 115 bool parseDateTimeLocal(const String&, unsigned start, unsigned& end);
116 // Sets year, month, monthDay, hour, minute, second and millisecond, and adj usts timezone.
117 bool parseDateTime(const String&, unsigned start, unsigned& end);
118 116
119 // The following setMillisecondsSinceEpochFor*() functions take 117 // The following setMillisecondsSinceEpochFor*() functions take
120 // the number of milliseconds since 1970-01-01 00:00:00.000 UTC as 118 // the number of milliseconds since 1970-01-01 00:00:00.000 UTC as
121 // the argument, and update all fields for the corresponding 119 // the argument, and update all fields for the corresponding
122 // DateComponents type. The functions return true if it succeeds, and 120 // DateComponents type. The functions return true if it succeeds, and
123 // false if they fail. 121 // false if they fail.
124 122
125 // For Date type. Updates m_year, m_month and m_monthDay. 123 // For Date type. Updates m_year, m_month and m_monthDay.
126 bool setMillisecondsSinceEpochForDate(double ms); 124 bool setMillisecondsSinceEpochForDate(double ms);
127 // For DateTime type. Updates m_year, m_month, m_monthDay, m_hour, m_minute, m_second and m_millisecond. 125 // For DateTime type. Updates m_year, m_month, m_monthDay, m_hour, m_minute, m_second and m_millisecond.
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
208 int m_year; // 1582 - 206 int m_year; // 1582 -
209 int m_week; // 1 - 53 207 int m_week; // 1 - 53
210 208
211 Type m_type; 209 Type m_type;
212 }; 210 };
213 211
214 212
215 } // namespace blink 213 } // namespace blink
216 214
217 #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