Package gov.nih.mipav.model.file
Class MetadataExtractor.DateUtil
java.lang.Object
gov.nih.mipav.model.file.MetadataExtractor.DateUtil
- Enclosing class:
MetadataExtractor
- Author:
- Drew Noakes http://drewnoakes.com
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate int[]private static final longThe offset (in milliseconds) to add to a MP4 date/time integer value to align with Java's Epoch. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionget1Jan1904EpochDate(long seconds) booleanisValidDate(int year, int month, int day) booleanisValidTime(int hours, int minutes, int seconds)
-
Field Details
-
_daysInMonth365
private int[] _daysInMonth365 -
EPOCH_1_JAN_1904
private static final long EPOCH_1_JAN_1904The offset (in milliseconds) to add to a MP4 date/time integer value to align with Java's Epoch.- See Also:
-
-
Constructor Details
-
DateUtil
public DateUtil()
-
-
Method Details
-
isValidDate
public boolean isValidDate(int year, int month, int day) -
isValidTime
public boolean isValidTime(int hours, int minutes, int seconds) -
get1Jan1904EpochDate
-