Package se.datadosen.util
Class FormattedDate
java.lang.Object
java.util.Date
se.datadosen.util.FormattedDate
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Cloneable
,java.lang.Comparable<java.util.Date>
public class FormattedDate
extends java.util.Date
Subclass of Date that prints itself according to the passed DateFormat class
- See Also:
- Serialized Form
-
Constructor Summary
Constructors Constructor Description FormattedDate(long l, java.text.DateFormat df)
FormattedDate(java.util.Date d, java.text.DateFormat df)
-
Method Summary
Modifier and Type Method Description java.lang.String
toString()
Methods inherited from class java.util.Date
after, before, clone, compareTo, equals, from, getDate, getDay, getHours, getMinutes, getMonth, getSeconds, getTime, getTimezoneOffset, getYear, hashCode, parse, setDate, setHours, setMinutes, setMonth, setSeconds, setTime, setYear, toGMTString, toInstant, toLocaleString, UTC
-
Constructor Details
-
FormattedDate
public FormattedDate(java.util.Date d, java.text.DateFormat df) -
FormattedDate
public FormattedDate(long l, java.text.DateFormat df)
-
-
Method Details
-
toString
public java.lang.String toString()- Overrides:
toString
in classjava.util.Date
-