Class PhotoDate
- java.lang.Object
-
- java.util.Date
-
- com.rometools.modules.photocast.types.PhotoDate
-
- All Implemented Interfaces:
Serializable,Cloneable,Comparable<Date>
public class PhotoDate extends 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.- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)StringtoString()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, from, getDate, getDay, getHours, getMinutes, getMonth, getSeconds, getTime, getTimezoneOffset, getYear, hashCode, parse, setDate, setHours, setMinutes, setMonth, setSeconds, setTime, setYear, toGMTString, toInstant, toLocaleString, UTC
-
-
-
-
Constructor Detail
-
PhotoDate
public 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 String toString()
Returns a string representing the fractional number of days since 00:00:00 01/01/00.
-
-