Lines Matching refs:Date

44 import java.util.Date;
60 * normalization. The date is represented as a <code>Date</code> object or
130 * Date formats are not synchronized.
270 * are a time value expressed in milliseconds and a Date object.
271 * @param obj must be a Number or a Date.
284 * occurrence of that time field. For instance, formatting a Date to
295 if (obj instanceof Date)
296 return format( (Date)obj, toAppendTo, fieldPosition );
298 return format( new Date(((Number)obj).longValue()),
301 throw new IllegalArgumentException("Cannot format given Object as a Date");
305 * Formats a Date into a date/time string.
306 * @param date a Date to be formatted into a date/time string.
318 * occurrence of that time field. For instance, formatting a Date to
326 public abstract StringBuffer format(Date date, StringBuffer toAppendTo,
330 * Formats a Date into a date/time string.
334 public final String format(Date date)
348 * @return A <code>Date</code> parsed from the string.
352 public Date parse(String source) throws ParseException
355 Date result = parse(source, pos);
364 * example, a time text {@code "07/10/96 4:5 PM, PDT"} will be parsed into a {@code Date}
365 * that is equivalent to {@code Date(837039900000L)}.
373 * a {@code Date}. As a result, the {@code calendar}'s date-time
386 * @return A {@code Date}, or {@code null} if the input could not be parsed
388 public abstract Date parse(String source, ParsePosition pos);
391 * Parses text from a string to produce a <code>Date</code>.
410 * @return A <code>Date</code> parsed from the string. In case of