]>
Commit | Line | Data |
---|---|---|
b37bf2e1 A |
1 | /* |
2 | * Copyright (C) 1999-2000 Harri Porten (porten@kde.org) | |
3 | * Copyright (C) 2006, 2007 Apple Inc. All rights reserved. | |
ba379fdc | 4 | * Copyright (C) 2009 Google Inc. All rights reserved. |
14957cd0 | 5 | * Copyright (C) 2010 Research In Motion Limited. All rights reserved. |
b37bf2e1 A |
6 | * |
7 | * Version: MPL 1.1/GPL 2.0/LGPL 2.1 | |
8 | * | |
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 | |
11 | * the License. You may obtain a copy of the License at | |
12 | * http://www.mozilla.org/MPL/ | |
13 | * | |
14 | * Software distributed under the License is distributed on an "AS IS" basis, | |
15 | * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License | |
16 | * for the specific language governing rights and limitations under the | |
17 | * License. | |
18 | * | |
19 | * The Original Code is Mozilla Communicator client code, released | |
20 | * March 31, 1998. | |
21 | * | |
22 | * The Initial Developer of the Original Code is | |
23 | * Netscape Communications Corporation. | |
24 | * Portions created by the Initial Developer are Copyright (C) 1998 | |
25 | * the Initial Developer. All Rights Reserved. | |
26 | * | |
27 | * Contributor(s): | |
28 | * | |
29 | * Alternatively, the contents of this file may be used under the terms of | |
30 | * either of the GNU General Public License Version 2 or later (the "GPL"), | |
31 | * or the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), | |
32 | * in which case the provisions of the GPL or the LGPL are applicable instead | |
33 | * of those above. If you wish to allow use of your version of this file only | |
34 | * under the terms of either the GPL or the LGPL, and not to allow others to | |
35 | * use your version of this file under the terms of the MPL, indicate your | |
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 | |
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. | |
40 | * | |
41 | */ | |
42 | ||
6fe7ccc8 A |
43 | #ifndef JSDateMath_h |
44 | #define JSDateMath_h | |
b37bf2e1 | 45 | |
6fe7ccc8 | 46 | #include <wtf/DateMath.h> |
93a37866 | 47 | #include <wtf/GregorianDateTime.h> |
b37bf2e1 | 48 | |
f9bf01c6 | 49 | namespace JSC { |
6fe7ccc8 | 50 | |
81345200 | 51 | class VM; |
f9bf01c6 | 52 | |
81345200 A |
53 | void msToGregorianDateTime(VM&, double, bool outputIsUTC, GregorianDateTime&); |
54 | double gregorianDateTimeToMS(VM&, const GregorianDateTime&, double, bool inputIsUTC); | |
55 | double getUTCOffset(VM&); | |
56 | double parseDateFromNullTerminatedCharacters(VM&, const char* dateString); | |
57 | double parseDate(VM&, const WTF::String&); | |
6fe7ccc8 | 58 | |
f9bf01c6 | 59 | } // namespace JSC |
b37bf2e1 | 60 | |
6fe7ccc8 | 61 | #endif // JSDateMath_h |