Package com.rometools.modules.base.types
Class ShortDate
- java.lang.Object
-
- java.util.Date
-
- com.rometools.modules.base.types.ShortDate
-
- All Implemented Interfaces:
CloneableType,Serializable,Cloneable,Comparable<Date>
public class ShortDate extends Date implements CloneableType
This is a simple wrapper for java.util.Date that indicates it should be formatted without time of day for Google Base. It should be transparent to module developers. Move along. Nothing to see here.- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Objectclone()Returns a duplicate of this object.-
Methods inherited from class java.util.Date
after, before, compareTo, equals, from, getDate, getDay, getHours, getMinutes, getMonth, getSeconds, getTime, getTimezoneOffset, getYear, hashCode, parse, setDate, setHours, setMinutes, setMonth, setSeconds, setTime, setYear, toGMTString, toInstant, toLocaleString, toString, UTC
-
-
-
-
Constructor Detail
-
ShortDate
public ShortDate()
-
ShortDate
public ShortDate(Date date)
Creates a new Short Date based on a Date value.- Parameters:
date- Date value to read from.
-
ShortDate
public ShortDate(long time)
Creates a new ShortDate based on a millisecond time.- Parameters:
time- Millisecond time to start with.
-
-
Method Detail
-
clone
public Object clone()
Returns a duplicate of this object.- Specified by:
clonein interfaceCloneableType- Overrides:
clonein classDate- Returns:
- Duplicate of the object.
-
-