~testplan-team/testplan/source-collection

« back to all changes in this revision

Viewing changes to commons-httpclient-3.1/docs/apidocs/org/apache/commons/httpclient/util/DateUtil.html

  • Committer: edA-qa mort-ora-y
  • Date: 2009-01-28 15:36:51 UTC
  • Revision ID: eda-qa@disemia.com-20090128153651-u4uzd035zyjea16j
adding httpclient

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
 
2
<!--NewPage-->
 
3
<HTML>
 
4
<HEAD>
 
5
<!-- Generated by javadoc (build 1.5.0_11) on Sat Aug 18 11:01:02 CEST 2007 -->
 
6
<META http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
 
7
<TITLE>
 
8
DateUtil (HttpClient 3.1 API)
 
9
</TITLE>
 
10
 
 
11
<META NAME="keywords" CONTENT="org.apache.commons.httpclient.util.DateUtil class">
 
12
 
 
13
<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../../stylesheet.css" TITLE="Style">
 
14
 
 
15
<SCRIPT type="text/javascript">
 
16
function windowTitle()
 
17
{
 
18
    parent.document.title="DateUtil (HttpClient 3.1 API)";
 
19
}
 
20
</SCRIPT>
 
21
<NOSCRIPT>
 
22
</NOSCRIPT>
 
23
 
 
24
</HEAD>
 
25
 
 
26
<BODY BGCOLOR="white" onload="windowTitle();">
 
27
 
 
28
 
 
29
<!-- ========= START OF TOP NAVBAR ======= -->
 
30
<A NAME="navbar_top"><!-- --></A>
 
31
<A HREF="#skip-navbar_top" title="Skip navigation links"></A>
 
32
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
 
33
<TR>
 
34
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
 
35
<A NAME="navbar_top_firstrow"><!-- --></A>
 
36
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
 
37
  <TR ALIGN="center" VALIGN="top">
 
38
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
 
39
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
 
40
  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
 
41
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/DateUtil.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
 
42
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
 
43
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
 
44
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
 
45
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
 
46
  </TR>
 
47
</TABLE>
 
48
</TD>
 
49
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
 
50
</EM>
 
51
</TD>
 
52
</TR>
 
53
 
 
54
<TR>
 
55
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
 
56
&nbsp;<A HREF="../../../../../org/apache/commons/httpclient/util/DateParser.html" title="class in org.apache.commons.httpclient.util"><B>PREV CLASS</B></A>&nbsp;
 
57
&nbsp;<A HREF="../../../../../org/apache/commons/httpclient/util/EncodingUtil.html" title="class in org.apache.commons.httpclient.util"><B>NEXT CLASS</B></A></FONT></TD>
 
58
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
 
59
  <A HREF="../../../../../index.html?org/apache/commons/httpclient/util/DateUtil.html" target="_top"><B>FRAMES</B></A>  &nbsp;
 
60
&nbsp;<A HREF="DateUtil.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
 
61
&nbsp;<SCRIPT type="text/javascript">
 
62
  <!--
 
63
  if(window==top) {
 
64
    document.writeln('<A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>');
 
65
  }
 
66
  //-->
 
67
</SCRIPT>
 
68
<NOSCRIPT>
 
69
  <A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>
 
70
</NOSCRIPT>
 
71
 
 
72
 
 
73
</FONT></TD>
 
74
</TR>
 
75
<TR>
 
76
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
 
77
  SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;<A HREF="#field_summary">FIELD</A>&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
 
78
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
 
79
DETAIL:&nbsp;<A HREF="#field_detail">FIELD</A>&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
 
80
</TR>
 
81
</TABLE>
 
82
<A NAME="skip-navbar_top"></A>
 
83
<!-- ========= END OF TOP NAVBAR ========= -->
 
84
 
 
85
<HR>
 
86
<!-- ======== START OF CLASS DATA ======== -->
 
87
<H2>
 
88
<FONT SIZE="-1">
 
89
org.apache.commons.httpclient.util</FONT>
 
90
<BR>
 
91
Class DateUtil</H2>
 
92
<PRE>
 
93
<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Object.html" title="class or interface in java.lang">java.lang.Object</A>
 
94
  <IMG SRC="../../../../../resources/inherit.gif" ALT="extended by "><B>org.apache.commons.httpclient.util.DateUtil</B>
 
95
</PRE>
 
96
<HR>
 
97
<DL>
 
98
<DT><PRE>public class <B>DateUtil</B><DT>extends <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A></DL>
 
99
</PRE>
 
100
 
 
101
<P>
 
102
A utility class for parsing and formatting HTTP dates as used in cookies and 
 
103
 other headers.  This class handles dates as defined by RFC 2616 section 
 
104
 3.3.1 as well as some other common non-standard formats.
 
105
<P>
 
106
 
 
107
<P>
 
108
<DL>
 
109
<DT><B>Author:</B></DT>
 
110
  <DD>Christopher Brown, Michael Becke</DD>
 
111
</DL>
 
112
<HR>
 
113
 
 
114
<P>
 
115
<!-- =========== FIELD SUMMARY =========== -->
 
116
 
 
117
<A NAME="field_summary"><!-- --></A>
 
118
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
 
119
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
 
120
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
 
121
<B>Field Summary</B></FONT></TH>
 
122
</TR>
 
123
<TR BGCOLOR="white" CLASS="TableRowColor">
 
124
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
 
125
<CODE>static&nbsp;<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A></CODE></FONT></TD>
 
126
<TD><CODE><B><A HREF="../../../../../org/apache/commons/httpclient/util/DateUtil.html#PATTERN_ASCTIME">PATTERN_ASCTIME</A></B></CODE>
 
127
 
 
128
<BR>
 
129
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Date format pattern used to parse HTTP date headers in ANSI C 
 
130
 <code>asctime()</code> format.</TD>
 
131
</TR>
 
132
<TR BGCOLOR="white" CLASS="TableRowColor">
 
133
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
 
134
<CODE>static&nbsp;<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A></CODE></FONT></TD>
 
135
<TD><CODE><B><A HREF="../../../../../org/apache/commons/httpclient/util/DateUtil.html#PATTERN_RFC1036">PATTERN_RFC1036</A></B></CODE>
 
136
 
 
137
<BR>
 
138
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Date format pattern used to parse HTTP date headers in RFC 1036 format.</TD>
 
139
</TR>
 
140
<TR BGCOLOR="white" CLASS="TableRowColor">
 
141
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
 
142
<CODE>static&nbsp;<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A></CODE></FONT></TD>
 
143
<TD><CODE><B><A HREF="../../../../../org/apache/commons/httpclient/util/DateUtil.html#PATTERN_RFC1123">PATTERN_RFC1123</A></B></CODE>
 
144
 
 
145
<BR>
 
146
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Date format pattern used to parse HTTP date headers in RFC 1123 format.</TD>
 
147
</TR>
 
148
</TABLE>
 
149
&nbsp;
 
150
<!-- ========== METHOD SUMMARY =========== -->
 
151
 
 
152
<A NAME="method_summary"><!-- --></A>
 
153
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
 
154
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
 
155
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
 
156
<B>Method Summary</B></FONT></TH>
 
157
</TR>
 
158
<TR BGCOLOR="white" CLASS="TableRowColor">
 
159
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
 
160
<CODE>static&nbsp;<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A></CODE></FONT></TD>
 
161
<TD><CODE><B><A HREF="../../../../../org/apache/commons/httpclient/util/DateUtil.html#formatDate(java.util.Date)">formatDate</A></B>(<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/util/Date.html" title="class or interface in java.util">Date</A>&nbsp;date)</CODE>
 
162
 
 
163
<BR>
 
164
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Formats the given date according to the RFC 1123 pattern.</TD>
 
165
</TR>
 
166
<TR BGCOLOR="white" CLASS="TableRowColor">
 
167
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
 
168
<CODE>static&nbsp;<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A></CODE></FONT></TD>
 
169
<TD><CODE><B><A HREF="../../../../../org/apache/commons/httpclient/util/DateUtil.html#formatDate(java.util.Date, java.lang.String)">formatDate</A></B>(<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/util/Date.html" title="class or interface in java.util">Date</A>&nbsp;date,
 
170
           <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;pattern)</CODE>
 
171
 
 
172
<BR>
 
173
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Formats the given date according to the specified pattern.</TD>
 
174
</TR>
 
175
<TR BGCOLOR="white" CLASS="TableRowColor">
 
176
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
 
177
<CODE>static&nbsp;<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/util/Date.html" title="class or interface in java.util">Date</A></CODE></FONT></TD>
 
178
<TD><CODE><B><A HREF="../../../../../org/apache/commons/httpclient/util/DateUtil.html#parseDate(java.lang.String)">parseDate</A></B>(<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;dateValue)</CODE>
 
179
 
 
180
<BR>
 
181
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Parses a date value.</TD>
 
182
</TR>
 
183
<TR BGCOLOR="white" CLASS="TableRowColor">
 
184
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
 
185
<CODE>static&nbsp;<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/util/Date.html" title="class or interface in java.util">Date</A></CODE></FONT></TD>
 
186
<TD><CODE><B><A HREF="../../../../../org/apache/commons/httpclient/util/DateUtil.html#parseDate(java.lang.String, java.util.Collection)">parseDate</A></B>(<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;dateValue,
 
187
          <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/util/Collection.html" title="class or interface in java.util">Collection</A>&nbsp;dateFormats)</CODE>
 
188
 
 
189
<BR>
 
190
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Parses the date value using the given date formats.</TD>
 
191
</TR>
 
192
<TR BGCOLOR="white" CLASS="TableRowColor">
 
193
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
 
194
<CODE>static&nbsp;<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/util/Date.html" title="class or interface in java.util">Date</A></CODE></FONT></TD>
 
195
<TD><CODE><B><A HREF="../../../../../org/apache/commons/httpclient/util/DateUtil.html#parseDate(java.lang.String, java.util.Collection, java.util.Date)">parseDate</A></B>(<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;dateValue,
 
196
          <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/util/Collection.html" title="class or interface in java.util">Collection</A>&nbsp;dateFormats,
 
197
          <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/util/Date.html" title="class or interface in java.util">Date</A>&nbsp;startDate)</CODE>
 
198
 
 
199
<BR>
 
200
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Parses the date value using the given date formats.</TD>
 
201
</TR>
 
202
</TABLE>
 
203
&nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
 
204
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
 
205
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
 
206
<TH ALIGN="left"><B>Methods inherited from class java.lang.<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A></B></TH>
 
207
</TR>
 
208
<TR BGCOLOR="white" CLASS="TableRowColor">
 
209
<TD><CODE><A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Object.html#clone()" title="class or interface in java.lang">clone</A>, <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Object.html#equals(java.lang.Object)" title="class or interface in java.lang">equals</A>, <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Object.html#finalize()" title="class or interface in java.lang">finalize</A>, <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Object.html#getClass()" title="class or interface in java.lang">getClass</A>, <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Object.html#hashCode()" title="class or interface in java.lang">hashCode</A>, <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Object.html#notify()" title="class or interface in java.lang">notify</A>, <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Object.html#notifyAll()" title="class or interface in java.lang">notifyAll</A>, <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Object.html#toString()" title="class or interface in java.lang">toString</A>, <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Object.html#wait()" title="class or interface in java.lang">wait</A>, <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Object.html#wait(long)" title="class or interface in java.lang">wait</A>, <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Object.html#wait(long, int)" title="class or interface in java.lang">wait</A></CODE></TD>
 
210
</TR>
 
211
</TABLE>
 
212
&nbsp;
 
213
<P>
 
214
 
 
215
<!-- ============ FIELD DETAIL =========== -->
 
216
 
 
217
<A NAME="field_detail"><!-- --></A>
 
218
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
 
219
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
 
220
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
 
221
<B>Field Detail</B></FONT></TH>
 
222
</TR>
 
223
</TABLE>
 
224
 
 
225
<A NAME="PATTERN_RFC1123"><!-- --></A><H3>
 
226
PATTERN_RFC1123</H3>
 
227
<PRE>
 
228
public static final <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> <B>PATTERN_RFC1123</B></PRE>
 
229
<DL>
 
230
<DD>Date format pattern used to parse HTTP date headers in RFC 1123 format.
 
231
<P>
 
232
<DL>
 
233
<DT><B>See Also:</B><DD><A HREF="../../../../../constant-values.html#org.apache.commons.httpclient.util.DateUtil.PATTERN_RFC1123">Constant Field Values</A></DL>
 
234
</DL>
 
235
<HR>
 
236
 
 
237
<A NAME="PATTERN_RFC1036"><!-- --></A><H3>
 
238
PATTERN_RFC1036</H3>
 
239
<PRE>
 
240
public static final <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> <B>PATTERN_RFC1036</B></PRE>
 
241
<DL>
 
242
<DD>Date format pattern used to parse HTTP date headers in RFC 1036 format.
 
243
<P>
 
244
<DL>
 
245
<DT><B>See Also:</B><DD><A HREF="../../../../../constant-values.html#org.apache.commons.httpclient.util.DateUtil.PATTERN_RFC1036">Constant Field Values</A></DL>
 
246
</DL>
 
247
<HR>
 
248
 
 
249
<A NAME="PATTERN_ASCTIME"><!-- --></A><H3>
 
250
PATTERN_ASCTIME</H3>
 
251
<PRE>
 
252
public static final <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> <B>PATTERN_ASCTIME</B></PRE>
 
253
<DL>
 
254
<DD>Date format pattern used to parse HTTP date headers in ANSI C 
 
255
 <code>asctime()</code> format.
 
256
<P>
 
257
<DL>
 
258
<DT><B>See Also:</B><DD><A HREF="../../../../../constant-values.html#org.apache.commons.httpclient.util.DateUtil.PATTERN_ASCTIME">Constant Field Values</A></DL>
 
259
</DL>
 
260
 
 
261
<!-- ============ METHOD DETAIL ========== -->
 
262
 
 
263
<A NAME="method_detail"><!-- --></A>
 
264
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
 
265
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
 
266
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
 
267
<B>Method Detail</B></FONT></TH>
 
268
</TR>
 
269
</TABLE>
 
270
 
 
271
<A NAME="parseDate(java.lang.String)"><!-- --></A><H3>
 
272
parseDate</H3>
 
273
<PRE>
 
274
public static <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/util/Date.html" title="class or interface in java.util">Date</A> <B>parseDate</B>(<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;dateValue)
 
275
                      throws <A HREF="../../../../../org/apache/commons/httpclient/util/DateParseException.html" title="class in org.apache.commons.httpclient.util">DateParseException</A></PRE>
 
276
<DL>
 
277
<DD>Parses a date value.  The formats used for parsing the date value are retrieved from
 
278
 the default http params.
 
279
<P>
 
280
<DD><DL>
 
281
<DT><B>Parameters:</B><DD><CODE>dateValue</CODE> - the date value to parse
 
282
<DT><B>Returns:</B><DD>the parsed date
 
283
<DT><B>Throws:</B>
 
284
<DD><CODE><A HREF="../../../../../org/apache/commons/httpclient/util/DateParseException.html" title="class in org.apache.commons.httpclient.util">DateParseException</A></CODE> - if the value could not be parsed using any of the 
 
285
 supported date formats</DL>
 
286
</DD>
 
287
</DL>
 
288
<HR>
 
289
 
 
290
<A NAME="parseDate(java.lang.String, java.util.Collection)"><!-- --></A><H3>
 
291
parseDate</H3>
 
292
<PRE>
 
293
public static <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/util/Date.html" title="class or interface in java.util">Date</A> <B>parseDate</B>(<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;dateValue,
 
294
                             <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/util/Collection.html" title="class or interface in java.util">Collection</A>&nbsp;dateFormats)
 
295
                      throws <A HREF="../../../../../org/apache/commons/httpclient/util/DateParseException.html" title="class in org.apache.commons.httpclient.util">DateParseException</A></PRE>
 
296
<DL>
 
297
<DD>Parses the date value using the given date formats.
 
298
<P>
 
299
<DD><DL>
 
300
<DT><B>Parameters:</B><DD><CODE>dateValue</CODE> - the date value to parse<DD><CODE>dateFormats</CODE> - the date formats to use
 
301
<DT><B>Returns:</B><DD>the parsed date
 
302
<DT><B>Throws:</B>
 
303
<DD><CODE><A HREF="../../../../../org/apache/commons/httpclient/util/DateParseException.html" title="class in org.apache.commons.httpclient.util">DateParseException</A></CODE> - if none of the dataFormats could parse the dateValue</DL>
 
304
</DD>
 
305
</DL>
 
306
<HR>
 
307
 
 
308
<A NAME="parseDate(java.lang.String, java.util.Collection, java.util.Date)"><!-- --></A><H3>
 
309
parseDate</H3>
 
310
<PRE>
 
311
public static <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/util/Date.html" title="class or interface in java.util">Date</A> <B>parseDate</B>(<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;dateValue,
 
312
                             <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/util/Collection.html" title="class or interface in java.util">Collection</A>&nbsp;dateFormats,
 
313
                             <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/util/Date.html" title="class or interface in java.util">Date</A>&nbsp;startDate)
 
314
                      throws <A HREF="../../../../../org/apache/commons/httpclient/util/DateParseException.html" title="class in org.apache.commons.httpclient.util">DateParseException</A></PRE>
 
315
<DL>
 
316
<DD>Parses the date value using the given date formats.
 
317
<P>
 
318
<DD><DL>
 
319
<DT><B>Parameters:</B><DD><CODE>dateValue</CODE> - the date value to parse<DD><CODE>dateFormats</CODE> - the date formats to use<DD><CODE>startDate</CODE> - During parsing, two digit years will be placed in the range 
 
320
 <code>startDate</code> to <code>startDate + 100 years</code>. This value may 
 
321
 be <code>null</code>. When <code>null</code> is given as a parameter, year 
 
322
 <code>2000</code> will be used.
 
323
<DT><B>Returns:</B><DD>the parsed date
 
324
<DT><B>Throws:</B>
 
325
<DD><CODE><A HREF="../../../../../org/apache/commons/httpclient/util/DateParseException.html" title="class in org.apache.commons.httpclient.util">DateParseException</A></CODE> - if none of the dataFormats could parse the dateValue</DL>
 
326
</DD>
 
327
</DL>
 
328
<HR>
 
329
 
 
330
<A NAME="formatDate(java.util.Date)"><!-- --></A><H3>
 
331
formatDate</H3>
 
332
<PRE>
 
333
public static <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> <B>formatDate</B>(<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/util/Date.html" title="class or interface in java.util">Date</A>&nbsp;date)</PRE>
 
334
<DL>
 
335
<DD>Formats the given date according to the RFC 1123 pattern.
 
336
<P>
 
337
<DD><DL>
 
338
<DT><B>Parameters:</B><DD><CODE>date</CODE> - The date to format.
 
339
<DT><B>Returns:</B><DD>An RFC 1123 formatted date string.<DT><B>See Also:</B><DD><A HREF="../../../../../org/apache/commons/httpclient/util/DateUtil.html#PATTERN_RFC1123"><CODE>PATTERN_RFC1123</CODE></A></DL>
 
340
</DD>
 
341
</DL>
 
342
<HR>
 
343
 
 
344
<A NAME="formatDate(java.util.Date, java.lang.String)"><!-- --></A><H3>
 
345
formatDate</H3>
 
346
<PRE>
 
347
public static <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> <B>formatDate</B>(<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/util/Date.html" title="class or interface in java.util">Date</A>&nbsp;date,
 
348
                                <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;pattern)</PRE>
 
349
<DL>
 
350
<DD>Formats the given date according to the specified pattern.  The pattern
 
351
 must conform to that used by the <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/text/SimpleDateFormat.html" title="class or interface in java.text"><CODE>simple date
 
352
 format</CODE></A> class.
 
353
<P>
 
354
<DD><DL>
 
355
<DT><B>Parameters:</B><DD><CODE>date</CODE> - The date to format.<DD><CODE>pattern</CODE> - The pattern to use for formatting the date.
 
356
<DT><B>Returns:</B><DD>A formatted date string.
 
357
<DT><B>Throws:</B>
 
358
<DD><CODE><A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/IllegalArgumentException.html" title="class or interface in java.lang">IllegalArgumentException</A></CODE> - If the given date pattern is invalid.<DT><B>See Also:</B><DD><A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/text/SimpleDateFormat.html" title="class or interface in java.text"><CODE>SimpleDateFormat</CODE></A></DL>
 
359
</DD>
 
360
</DL>
 
361
<!-- ========= END OF CLASS DATA ========= -->
 
362
<HR>
 
363
 
 
364
 
 
365
<!-- ======= START OF BOTTOM NAVBAR ====== -->
 
366
<A NAME="navbar_bottom"><!-- --></A>
 
367
<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
 
368
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
 
369
<TR>
 
370
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
 
371
<A NAME="navbar_bottom_firstrow"><!-- --></A>
 
372
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
 
373
  <TR ALIGN="center" VALIGN="top">
 
374
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
 
375
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
 
376
  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
 
377
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/DateUtil.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
 
378
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
 
379
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
 
380
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
 
381
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
 
382
  </TR>
 
383
</TABLE>
 
384
</TD>
 
385
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
 
386
</EM>
 
387
</TD>
 
388
</TR>
 
389
 
 
390
<TR>
 
391
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
 
392
&nbsp;<A HREF="../../../../../org/apache/commons/httpclient/util/DateParser.html" title="class in org.apache.commons.httpclient.util"><B>PREV CLASS</B></A>&nbsp;
 
393
&nbsp;<A HREF="../../../../../org/apache/commons/httpclient/util/EncodingUtil.html" title="class in org.apache.commons.httpclient.util"><B>NEXT CLASS</B></A></FONT></TD>
 
394
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
 
395
  <A HREF="../../../../../index.html?org/apache/commons/httpclient/util/DateUtil.html" target="_top"><B>FRAMES</B></A>  &nbsp;
 
396
&nbsp;<A HREF="DateUtil.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
 
397
&nbsp;<SCRIPT type="text/javascript">
 
398
  <!--
 
399
  if(window==top) {
 
400
    document.writeln('<A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>');
 
401
  }
 
402
  //-->
 
403
</SCRIPT>
 
404
<NOSCRIPT>
 
405
  <A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>
 
406
</NOSCRIPT>
 
407
 
 
408
 
 
409
</FONT></TD>
 
410
</TR>
 
411
<TR>
 
412
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
 
413
  SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;<A HREF="#field_summary">FIELD</A>&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
 
414
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
 
415
DETAIL:&nbsp;<A HREF="#field_detail">FIELD</A>&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
 
416
</TR>
 
417
</TABLE>
 
418
<A NAME="skip-navbar_bottom"></A>
 
419
<!-- ======== END OF BOTTOM NAVBAR ======= -->
 
420
 
 
421
<HR>
 
422
Copyright &copy; 2001-2007 Apache Software Foundation. All Rights Reserved.
 
423
</BODY>
 
424
</HTML>