| OLD | NEW |
| 1 /* Portions are Copyright (C) 2011 Google Inc */ | 1 /* Portions are Copyright (C) 2011 Google Inc */ |
| 2 /* ***** BEGIN LICENSE BLOCK ***** | 2 /* ***** BEGIN LICENSE BLOCK ***** |
| 3 * Version: MPL 1.1/GPL 2.0/LGPL 2.1 | 3 * Version: MPL 1.1/GPL 2.0/LGPL 2.1 |
| 4 * | 4 * |
| 5 * The contents of this file are subject to the Mozilla Public License Version | 5 * The contents of this file are subject to the Mozilla Public License Version |
| 6 * 1.1 (the "License"); you may not use this file except in compliance with | 6 * 1.1 (the "License"); you may not use this file except in compliance with |
| 7 * the License. You may obtain a copy of the License at | 7 * the License. You may obtain a copy of the License at |
| 8 * http://www.mozilla.org/MPL/ | 8 * http://www.mozilla.org/MPL/ |
| 9 * | 9 * |
| 10 * Software distributed under the License is distributed on an "AS IS" basis, | 10 * Software distributed under the License is distributed on an "AS IS" basis, |
| (...skipping 215 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 226 * Mon Jan 16 16:12 +0130 1989 | 226 * Mon Jan 16 16:12 +0130 1989 |
| 227 * 6 May 1992 16:41-JST (Wednesday) | 227 * 6 May 1992 16:41-JST (Wednesday) |
| 228 * 22-AUG-1993 10:59:12.82 | 228 * 22-AUG-1993 10:59:12.82 |
| 229 * 22-AUG-1993 10:59pm | 229 * 22-AUG-1993 10:59pm |
| 230 * 22-AUG-1993 12:59am | 230 * 22-AUG-1993 12:59am |
| 231 * 22-AUG-1993 12:59 PM | 231 * 22-AUG-1993 12:59 PM |
| 232 * Friday, August 04, 1995 3:54 PM | 232 * Friday, August 04, 1995 3:54 PM |
| 233 * 06/21/95 04:24:34 PM | 233 * 06/21/95 04:24:34 PM |
| 234 * 20/06/95 21:07 | 234 * 20/06/95 21:07 |
| 235 * 95-06-08 19:32:48 EDT | 235 * 95-06-08 19:32:48 EDT |
| 236 * 1995-06-17T23:11:25.342156Z |
| 236 * | 237 * |
| 237 * If the input string doesn't contain a description of the timezone, | 238 * If the input string doesn't contain a description of the timezone, |
| 238 * we consult the `default_to_gmt' to decide whether the string should | 239 * we consult the `default_to_gmt' to decide whether the string should |
| 239 * be interpreted relative to the local time zone (PR_FALSE) or GMT (PR_TRUE). | 240 * be interpreted relative to the local time zone (PR_FALSE) or GMT (PR_TRUE). |
| 240 * The correct value for this argument depends on what standard specified | 241 * The correct value for this argument depends on what standard specified |
| 241 * the time string which you are parsing. | 242 * the time string which you are parsing. |
| 242 */ | 243 */ |
| 243 | 244 |
| 244 /* | 245 /* |
| 245 * This is the only funtion that should be called from outside base, and only | 246 * This is the only funtion that should be called from outside base, and only |
| 246 * from the unit test. | 247 * from the unit test. |
| 247 */ | 248 */ |
| 248 | 249 |
| 249 BASE_EXPORT PRStatus PR_ParseTimeString ( | 250 BASE_EXPORT PRStatus PR_ParseTimeString ( |
| 250 const char *string, | 251 const char *string, |
| 251 PRBool default_to_gmt, | 252 PRBool default_to_gmt, |
| 252 PRTime *result); | 253 PRTime *result); |
| 253 | 254 |
| 254 #endif // BASE_PRTIME_H__ | 255 #endif // BASE_PRTIME_H__ |
| OLD | NEW |