Class MetadataExtractor.DateUtil

  • Enclosing class:
    MetadataExtractor

    public class MetadataExtractor.DateUtil
    extends java.lang.Object
    Author:
    Drew Noakes http://drewnoakes.com
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private int[] _daysInMonth365  
      private static long EPOCH_1_JAN_1904
      The offset (in milliseconds) to add to a MP4 date/time integer value to align with Java's Epoch.
    • Constructor Summary

      Constructors 
      Constructor Description
      DateUtil()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.Date get1Jan1904EpochDate​(long seconds)  
      boolean isValidDate​(int year, int month, int day)  
      boolean isValidTime​(int hours, int minutes, int seconds)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • _daysInMonth365

        private int[] _daysInMonth365
      • EPOCH_1_JAN_1904

        private static final long EPOCH_1_JAN_1904
        The offset (in milliseconds) to add to a MP4 date/time integer value to align with Java's Epoch.
        See Also:
        Constant Field Values
    • Constructor Detail

      • DateUtil

        public DateUtil()
    • Method Detail

      • isValidDate

        public boolean isValidDate​(int year,
                                   int month,
                                   int day)
      • isValidTime

        public boolean isValidTime​(int hours,
                                   int minutes,
                                   int seconds)
      • get1Jan1904EpochDate

        public java.util.Date get1Jan1904EpochDate​(long seconds)