| 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 27 matching lines...) Expand all Loading... |
| 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> | 46 #include <stdint.h> |
| 47 #include <string.h> | 47 #include <string.h> |
| 48 #include "wtf/text/WTFString.h" | 48 #include "sky/engine/wtf/WTFExport.h" |
| 49 #include "wtf/WTFExport.h" | 49 #include "sky/engine/wtf/text/WTFString.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 t
hese. |
| 56 WTF_EXPORT double parseDateFromNullTerminatedCharacters(const char* dateString); | 56 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]. | 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 WTF_EXPORT String makeRFC2822DateString(unsigned dayOfWeek, unsigned day, unsign
ed month, unsigned year, unsigned hours, unsigned minutes, unsigned seconds, int
utcOffset); | 58 WTF_EXPORT String makeRFC2822DateString(unsigned dayOfWeek, unsigned day, unsign
ed month, unsigned year, unsigned hours, unsigned minutes, unsigned seconds, int
utcOffset); |
| 59 | 59 |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 93 using WTF::msPerHour; | 93 using WTF::msPerHour; |
| 94 using WTF::msPerMinute; | 94 using WTF::msPerMinute; |
| 95 using WTF::msPerSecond; | 95 using WTF::msPerSecond; |
| 96 using WTF::msToYear; | 96 using WTF::msToYear; |
| 97 using WTF::secondsPerMinute; | 97 using WTF::secondsPerMinute; |
| 98 using WTF::parseDateFromNullTerminatedCharacters; | 98 using WTF::parseDateFromNullTerminatedCharacters; |
| 99 using WTF::makeRFC2822DateString; | 99 using WTF::makeRFC2822DateString; |
| 100 using WTF::convertToLocalTime; | 100 using WTF::convertToLocalTime; |
| 101 | 101 |
| 102 #endif // DateMath_h | 102 #endif // DateMath_h |
| OLD | NEW |