com.sun.syndication.feed.module.base.types
Class ShortDate

java.lang.Object
  extended by java.util.Date
      extended by com.sun.syndication.feed.module.base.types.ShortDate
All Implemented Interfaces:
CloneableType, java.io.Serializable, java.lang.Cloneable, java.lang.Comparable<java.util.Date>

public class ShortDate
extends java.util.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.

Version:
$Revision: 1.1 $
Author:
Robert "kebernet" Cooper
See Also:
Serialized Form

Constructor Summary
ShortDate()
          Creates a new instance of ShortDate
ShortDate(java.util.Date date)
          Creates a new Short Date based on a Date value.
ShortDate(long time)
          Creates a new ShortDate based on a millisecond time.
 
Method Summary
 java.lang.Object clone()
          Returns a duplicate of this object.
 
Methods inherited from class java.util.Date
after, before, compareTo, equals, getDate, getDay, getHours, getMinutes, getMonth, getSeconds, getTime, getTimezoneOffset, getYear, hashCode, parse, setDate, setHours, setMinutes, setMonth, setSeconds, setTime, setYear, toGMTString, toLocaleString, toString, UTC
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ShortDate

public ShortDate()
Creates a new instance of ShortDate


ShortDate

public ShortDate(java.util.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 java.lang.Object clone()
Returns a duplicate of this object.

Specified by:
clone in interface CloneableType
Overrides:
clone in class java.util.Date
Returns:
Duplicate of the object.


Copyright © 2006-2009. All Rights Reserved.