A utility class for parsing and formatting HTTP dates as used in cookies and other headers.
More...
This class handles dates as defined by RFC 2616 section 3.3.1 as well as some other common non-standard formats.
- Author
- Christopher Brown
-
Michael Becke
Notice
The following notice applies to the original API on which this API is based, and to its documentation. The documentation of this API has been revised from the original.
/*
* Copyright (C) 2006 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
|
static Date | parseDate (String dateValue) throws DateParseException |
| Parses a date value. More...
|
|
static Date | parseDate (final String dateValue, String[] dateFormats) throws DateParseException |
| Parses the date value using the given date formats. More...
|
|
static Date | parseDate (String dateValue, String[] dateFormats, Date startDate) throws DateParseException |
| Parses the date value using the given date formats. More...
|
|
static String | formatDate (Date date) |
| Formats the given date according to the RFC 1123 pattern. More...
|
|
static String | formatDate (Date date, String pattern) |
| Formats the given date according to the specified pattern. More...
|
|