@Test public void testToDt() throws Exception { TimeConv.setTimeZone("GMT+1"); DateAndTime time = TimeConv.toDt(660815000); assertEquals("1970-01-08T16:33:35Z", time.getValue()); TimeConv.setTimeZone("GMT+2"); time = TimeConv.toDt(660815000); assertEquals("1970-01-08T17:33:35Z", time.getValue()); }
public static synchronized DateAndTime toDt(long currentTime) { return new DateAndTime(DF.format(new Date(currentTime))); }
TimeConv { public static synchronized DateAndTime toDt(long currentTime) { return new DateAndTime(DF.format(new Date(currentTime))); } }
TimeConv { public static synchronized DateAndTime toDt(long currentTime) { return new DateAndTime(DF.format(new Date(currentTime))); } private  TimeConv(); }
TimeConv { public static synchronized DateAndTime toDt(long currentTime) { return new DateAndTime(DF.format(new Date(currentTime))); } private  TimeConv(); static synchronized DateAndTime toDt(long currentTime); static synchronized void setTimeZone(String timeZone); static synchronized long toLong(DateAndTime dateAndTime); }
TimeConv { public static synchronized DateAndTime toDt(long currentTime) { return new DateAndTime(DF.format(new Date(currentTime))); } private  TimeConv(); static synchronized DateAndTime toDt(long currentTime); static synchronized void setTimeZone(String timeZone); static synchronized long toLong(DateAndTime dateAndTime);  }