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

Side by Side Diff: third_party/WebKit/Source/wtf/DateMath.h

Issue 2386843002: reflow comments in wtf (Closed)
Patch Set: comments (heh!) Created 4 years, 2 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 | « third_party/WebKit/Source/wtf/DataLog.cpp ('k') | third_party/WebKit/Source/wtf/DateMath.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) 1999-2000 Harri Porten (porten@kde.org) 2 * Copyright (C) 1999-2000 Harri Porten (porten@kde.org)
3 * Copyright (C) 2006, 2007 Apple Inc. All rights reserved. 3 * Copyright (C) 2006, 2007 Apple Inc. All rights reserved.
4 * Copyright (C) 2009 Google Inc. All rights reserved. 4 * Copyright (C) 2009 Google Inc. All rights reserved.
5 * Copyright (C) 2010 Research In Motion Limited. All rights reserved. 5 * Copyright (C) 2010 Research In Motion Limited. All rights reserved.
6 * 6 *
7 * Version: MPL 1.1/GPL 2.0/LGPL 2.1 7 * Version: MPL 1.1/GPL 2.0/LGPL 2.1
8 * 8 *
9 * The contents of this file are subject to the Mozilla Public License Version 9 * The contents of this file are subject to the Mozilla Public License Version
10 * 1.1 (the "License"); you may not use this file except in compliance with 10 * 1.1 (the "License"); you may not use this file except in compliance with
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 45
46 #include "wtf/WTFExport.h" 46 #include "wtf/WTFExport.h"
47 #include "wtf/text/WTFString.h" 47 #include "wtf/text/WTFString.h"
48 #include <stdint.h> 48 #include <stdint.h>
49 #include <string.h> 49 #include <string.h>
50 50
51 namespace WTF { 51 namespace WTF {
52 52
53 WTF_EXPORT void initializeDates(); 53 WTF_EXPORT void initializeDates();
54 54
55 // Not really math related, but this is currently the only shared place to put t hese. 55 // Not really math related, but this is currently the only shared place to put
56 // these.
56 WTF_EXPORT double parseDateFromNullTerminatedCharacters(const char* dateString); 57 WTF_EXPORT double parseDateFromNullTerminatedCharacters(const char* dateString);
57 // dayOfWeek: [0, 6] 0 being Monday, day: [1, 31], month: [0, 11], year: ex: 201 1, hours: [0, 23], minutes: [0, 59], seconds: [0, 59], utcOffset: [-720,720]. 58 // dayOfWeek: [0, 6] 0 being Monday
59 // day: [1, 31]
60 // month: [0, 11]
61 // year: ex: 2011
62 // hours: [0, 23]
63 // minutes: [0, 59]
64 // seconds: [0, 59]
65 // utcOffset: [-720,720].
58 WTF_EXPORT String makeRFC2822DateString(unsigned dayOfWeek, 66 WTF_EXPORT String makeRFC2822DateString(unsigned dayOfWeek,
59 unsigned day, 67 unsigned day,
60 unsigned month, 68 unsigned month,
61 unsigned year, 69 unsigned year,
62 unsigned hours, 70 unsigned hours,
63 unsigned minutes, 71 unsigned minutes,
64 unsigned seconds, 72 unsigned seconds,
65 int utcOffset); 73 int utcOffset);
66 74
67 const char weekdayName[7][4] = {"Mon", "Tue", "Wed", "Thu", 75 const char weekdayName[7][4] = {"Mon", "Tue", "Wed", "Thu",
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 using WTF::msPerHour; 112 using WTF::msPerHour;
105 using WTF::msPerMinute; 113 using WTF::msPerMinute;
106 using WTF::msPerSecond; 114 using WTF::msPerSecond;
107 using WTF::msToYear; 115 using WTF::msToYear;
108 using WTF::secondsPerMinute; 116 using WTF::secondsPerMinute;
109 using WTF::parseDateFromNullTerminatedCharacters; 117 using WTF::parseDateFromNullTerminatedCharacters;
110 using WTF::makeRFC2822DateString; 118 using WTF::makeRFC2822DateString;
111 using WTF::convertToLocalTime; 119 using WTF::convertToLocalTime;
112 120
113 #endif // DateMath_h 121 #endif // DateMath_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/wtf/DataLog.cpp ('k') | third_party/WebKit/Source/wtf/DateMath.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698