com.sun.syndication.feed.module.photocast.types
Class PhotoDate

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

public class PhotoDate
extends java.util.Date

This is a specialized Date class for working with the apple PhotoDate format. It provides a constructor taking a dobule value representing the fractional number of days since 00:00:00 01/01/00.

Author:
Robert "kebernet" Cooper
See Also:
Serialized Form

Constructor Summary
PhotoDate()
          Creates a new instance of PhotoDate
PhotoDate(double photoDateValue)
          Creates a new instance of PhotoDate with the fractional number of days since 00:00:00 01/01/00.
PhotoDate(long time)
          Creates a new instance of PhotoDate with the timestamp provided.
 
Method Summary
 boolean equals(java.lang.Object o)
           
 java.lang.String toString()
          Returns a string representing the fractional number of days since 00:00:00 01/01/00.
 
Methods inherited from class java.util.Date
after, before, clone, compareTo, getDate, getDay, getHours, getMinutes, getMonth, getSeconds, getTime, getTimezoneOffset, getYear, hashCode, parse, setDate, setHours, setMinutes, setMonth, setSeconds, setTime, setYear, toGMTString, toLocaleString, UTC
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PhotoDate

public PhotoDate()
Creates a new instance of PhotoDate


PhotoDate

public PhotoDate(long time)
Creates a new instance of PhotoDate with the timestamp provided.

Parameters:
time - milliseconds time

PhotoDate

public PhotoDate(double photoDateValue)
Creates a new instance of PhotoDate with the fractional number of days since 00:00:00 01/01/00.

Parameters:
photoDateValue - fractional number of days since 00:00:00 01/01/00
Method Detail

toString

public java.lang.String toString()
Returns a string representing the fractional number of days since 00:00:00 01/01/00.

Overrides:
toString in class java.util.Date
Returns:
Returns a string representing the fractional number of days since 00:00:00 01/01/00.

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.util.Date


Copyright © 2006-2009. All Rights Reserved.