DateTimeUtils { public static Date fromFixedHeaderFormat(String dateString) throws ParseException { return FIXED_HEADER_FORMAT.parse(dateString); }  static Calendar getUtcCalendar(); static Date cfiDateToUtc(int days, long seconds, long microseconds); static Date cfiDateToUtc(CompoundData compoundData); static Date mjdFloatDateToUtc(float mjd); static String toVariableHeaderFormat(Date date); static String toFixedHeaderFormat(Date date); static Date fromFixedHeaderFormat(String dateString); static String toFileNameFormat(Date date);  }
@Test public void testFromFixedHeaderFormat() throws ParseException { Date date = DateTimeUtils.fromFixedHeaderFormat("UTC=2000-01-01T00:00:00"); assertEquals(946684800000L, date.getTime()); date = DateTimeUtils.fromFixedHeaderFormat("UTC=2000-01-01T00:00:01"); assertEquals(946684801000L, date.getTime()); }