| 1 | /* | 
| 2 |  * Copyright (C) 1999-2000 Harri Porten (porten@kde.org) | 
| 3 |  * Copyright (C) 2006, 2007 Apple Inc. All rights reserved. | 
| 4 |  * Copyright (C) 2009 Google Inc. All rights reserved. | 
| 5 |  * | 
| 6 |  * Version: MPL 1.1/GPL 2.0/LGPL 2.1 | 
| 7 |  * | 
| 8 |  * The contents of this file are subject to the Mozilla Public License Version | 
| 9 |  * 1.1 (the "License"); you may not use this file except in compliance with | 
| 10 |  * the License. You may obtain a copy of the License at | 
| 11 |  * http://www.mozilla.org/MPL/ | 
| 12 |  * | 
| 13 |  * Software distributed under the License is distributed on an "AS IS" basis, | 
| 14 |  * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License | 
| 15 |  * for the specific language governing rights and limitations under the | 
| 16 |  * License. | 
| 17 |  * | 
| 18 |  * The Original Code is Mozilla Communicator client code, released | 
| 19 |  * March 31, 1998. | 
| 20 |  * | 
| 21 |  * The Initial Developer of the Original Code is | 
| 22 |  * Netscape Communications Corporation. | 
| 23 |  * Portions created by the Initial Developer are Copyright (C) 1998 | 
| 24 |  * the Initial Developer. All Rights Reserved. | 
| 25 |  * | 
| 26 |  * Contributor(s): | 
| 27 |  * | 
| 28 |  * Alternatively, the contents of this file may be used under the terms of | 
| 29 |  * either of the GNU General Public License Version 2 or later (the "GPL"), | 
| 30 |  * or the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), | 
| 31 |  * in which case the provisions of the GPL or the LGPL are applicable instead | 
| 32 |  * of those above. If you wish to allow use of your version of this file only | 
| 33 |  * under the terms of either the GPL or the LGPL, and not to allow others to | 
| 34 |  * use your version of this file under the terms of the MPL, indicate your | 
| 35 |  * decision by deleting the provisions above and replace them with the notice | 
| 36 |  * and other provisions required by the GPL or the LGPL. If you do not delete | 
| 37 |  * the provisions above, a recipient may use your version of this file under | 
| 38 |  * the terms of any one of the MPL, the GPL or the LGPL. | 
| 39 |  * | 
| 40 |  */ | 
| 41 |  | 
| 42 | #ifndef DateConversion_h | 
| 43 | #define DateConversion_h | 
| 44 |  | 
| 45 | #include "UString.h" | 
| 46 |  | 
| 47 | namespace JSC { | 
| 48 |  | 
| 49 | class ExecState; | 
| 50 | struct GregorianDateTime; | 
| 51 |  | 
| 52 | static const unsigned DateConversionBufferSize = 100; | 
| 53 | typedef char DateConversionBuffer[DateConversionBufferSize]; | 
| 54 |  | 
| 55 | double parseDate(ExecState* exec, const UString&); | 
| 56 | void formatDate(const GregorianDateTime&, DateConversionBuffer&); | 
| 57 | void formatDateUTCVariant(const GregorianDateTime&, DateConversionBuffer&); | 
| 58 | void formatTime(const GregorianDateTime&, DateConversionBuffer&); | 
| 59 | void formatTimeUTC(const GregorianDateTime&, DateConversionBuffer&); | 
| 60 |  | 
| 61 | } // namespace JSC | 
| 62 |  | 
| 63 | #endif // DateConversion_h | 
| 64 |  |