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 "platform/wtf/WTFExport.h" | 48 #include "platform/wtf/WTFExport.h" |
47 #include "platform/wtf/text/WTFString.h" | 49 #include "platform/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( | 57 WTF_EXPORT double ParseDateFromNullTerminatedCharacters( |
58 const char* date_string); | 58 const char* date_string); |
59 // dayOfWeek: [0, 6] 0 being Monday | 59 // dayOfWeek: [0, 6] 0 being Monday |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
113 using WTF::kMsPerHour; | 113 using WTF::kMsPerHour; |
114 using WTF::kMsPerMinute; | 114 using WTF::kMsPerMinute; |
115 using WTF::kMsPerSecond; | 115 using WTF::kMsPerSecond; |
116 using WTF::MsToYear; | 116 using WTF::MsToYear; |
117 using WTF::kSecondsPerMinute; | 117 using WTF::kSecondsPerMinute; |
118 using WTF::ParseDateFromNullTerminatedCharacters; | 118 using WTF::ParseDateFromNullTerminatedCharacters; |
119 using WTF::MakeRFC2822DateString; | 119 using WTF::MakeRFC2822DateString; |
120 using WTF::ConvertToLocalTime; | 120 using WTF::ConvertToLocalTime; |
121 | 121 |
122 #endif // DateMath_h | 122 #endif // DateMath_h |
OLD | NEW |