OLD | NEW |
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 25 matching lines...) Expand all Loading... |
36 * decision by deleting the provisions above and replace them with the notice | 36 * decision by deleting the provisions above and replace them with the notice |
37 * and other provisions required by the GPL or the LGPL. If you do not delete | 37 * and other provisions required by the GPL or the LGPL. If you do not delete |
38 * the provisions above, a recipient may use your version of this file under | 38 * the provisions above, a recipient may use your version of this file under |
39 * the terms of any one of the MPL, the GPL or the LGPL. | 39 * the terms of any one of the MPL, the GPL or the LGPL. |
40 * | 40 * |
41 */ | 41 */ |
42 | 42 |
43 #ifndef DateMath_h | 43 #ifndef DateMath_h |
44 #define DateMath_h | 44 #define DateMath_h |
45 | 45 |
| 46 #include <stdint.h> |
| 47 #include <string.h> |
46 #include "wtf/WTFExport.h" | 48 #include "wtf/WTFExport.h" |
47 #include "wtf/text/WTFString.h" | 49 #include "wtf/text/WTFString.h" |
48 #include <stdint.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 | 55 // Not really math related, but this is currently the only shared place to put |
56 // these. | 56 // these. |
57 WTF_EXPORT double parseDateFromNullTerminatedCharacters(const char* dateString); | 57 WTF_EXPORT double parseDateFromNullTerminatedCharacters(const char* dateString); |
58 // dayOfWeek: [0, 6] 0 being Monday | 58 // dayOfWeek: [0, 6] 0 being Monday |
59 // day: [1, 31] | 59 // day: [1, 31] |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
112 using WTF::msPerHour; | 112 using WTF::msPerHour; |
113 using WTF::msPerMinute; | 113 using WTF::msPerMinute; |
114 using WTF::msPerSecond; | 114 using WTF::msPerSecond; |
115 using WTF::msToYear; | 115 using WTF::msToYear; |
116 using WTF::secondsPerMinute; | 116 using WTF::secondsPerMinute; |
117 using WTF::parseDateFromNullTerminatedCharacters; | 117 using WTF::parseDateFromNullTerminatedCharacters; |
118 using WTF::makeRFC2822DateString; | 118 using WTF::makeRFC2822DateString; |
119 using WTF::convertToLocalTime; | 119 using WTF::convertToLocalTime; |
120 | 120 |
121 #endif // DateMath_h | 121 #endif // DateMath_h |
OLD | NEW |