Class 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
    • 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.
        Overrides:
        toString in class Date
        Returns:
        Returns a string representing the fractional number of days since 00:00:00 01/01/00.
      • equals

        public boolean equals​(Object o)
        Overrides:
        equals in class Date