DateTime { public long getTimeInMillisec() { return dateTime.atZone(ZoneId.of("UTC+0")).toInstant().toEpochMilli(); } DateTime();  DateTime(int year, int month, int day, int hour, int minute, int second); String getDateTime(); String getDate(); String getTime(); void setDateTime(int year, int month, int day, int hour, int minute, int second); void setDate(int year, int month, int day); void setTime(int hour, int minute, int second); long getTimeInMillisec(); long getTimeInMillisec(int year, int month, int day, int hour, int minute, int second); @Override String toString();  }
@Test public void getTimeInMillisecWithSetDateTime() throws Exception { System.out.println(dateTime.getTimeInMillisec(2016, 8, 21, 12, 30, 45)); }
@Test public void getTimeInMillisec() throws Exception { System.out.println(dateTime.getTimeInMillisec()); }