| OLD | NEW |
| 1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ | 1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ |
| 2 /* This Source Code Form is subject to the terms of the Mozilla Public | 2 /* This Source Code Form is subject to the terms of the Mozilla Public |
| 3 * License, v. 2.0. If a copy of the MPL was not distributed with this | 3 * License, v. 2.0. If a copy of the MPL was not distributed with this |
| 4 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ | 4 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ |
| 5 | 5 |
| 6 /* | 6 /* |
| 7 *---------------------------------------------------------------------- | 7 *---------------------------------------------------------------------- |
| 8 * | 8 * |
| 9 * prtime.h -- | 9 * prtime.h -- |
| 10 * | 10 * |
| (...skipping 230 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 241 * if the time/date string can't be parsed. | 241 * if the time/date string can't be parsed. |
| 242 */ | 242 */ |
| 243 | 243 |
| 244 NSPR_API(PRStatus) PR_ParseTimeString ( | 244 NSPR_API(PRStatus) PR_ParseTimeString ( |
| 245 const char *string, | 245 const char *string, |
| 246 PRBool default_to_gmt, | 246 PRBool default_to_gmt, |
| 247 PRTime *result); | 247 PRTime *result); |
| 248 | 248 |
| 249 /* Format a time value into a buffer. Same semantics as strftime() */ | 249 /* Format a time value into a buffer. Same semantics as strftime() */ |
| 250 NSPR_API(PRUint32) PR_FormatTime(char *buf, int buflen, const char *fmt, | 250 NSPR_API(PRUint32) PR_FormatTime(char *buf, int buflen, const char *fmt, |
| 251 const PRExplodedTime *tm); | 251 const PRExplodedTime *time); |
| 252 | 252 |
| 253 /* Format a time value into a buffer. Time is always in US English format, regar
dless | 253 /* Format a time value into a buffer. Time is always in US English format, |
| 254 * of locale setting. | 254 * regardless of locale setting. |
| 255 */ | 255 */ |
| 256 NSPR_API(PRUint32) | 256 NSPR_API(PRUint32) |
| 257 PR_FormatTimeUSEnglish( char* buf, PRUint32 bufSize, | 257 PR_FormatTimeUSEnglish(char *buf, PRUint32 bufSize, |
| 258 const char* format, const PRExplodedTime* tm ); | 258 const char *format, const PRExplodedTime *time); |
| 259 | 259 |
| 260 PR_END_EXTERN_C | 260 PR_END_EXTERN_C |
| 261 | 261 |
| 262 #endif /* prtime_h___ */ | 262 #endif /* prtime_h___ */ |
| OLD | NEW |