@Test public void toDateTimeTest() { OffsetDateTime offsetDateTime = OffsetDateTime.parse("2010-06-30T01:20+00:00"); DateTime jodaDateTime = new DateTime("2010-06-30T01:20+00:00"); assertThat(toDateTime(offsetDateTime).toInstant(), equalTo(jodaDateTime.toInstant())); }
@Nullable public static DateTime toDateTime(@Nullable final Date date) { if (date == null) { return null; } return new DateTime(date.getTime()); }
DateHelper { @Nullable public static DateTime toDateTime(@Nullable final Date date) { if (date == null) { return null; } return new DateTime(date.getTime()); } }
DateHelper { @Nullable public static DateTime toDateTime(@Nullable final Date date) { if (date == null) { return null; } return new DateTime(date.getTime()); } private  DateHelper(); }
DateHelper { @Nullable public static DateTime toDateTime(@Nullable final Date date) { if (date == null) { return null; } return new DateTime(date.getTime()); } private  DateHelper(); @Nullable static Date copy(@Nullable final Date date); @Nullable static DateTime toDateTime(@Nullable final Date date); @Nullable static Date toDate(@Nullable final DateTime dateTime); static DateTime toDateTime(final OffsetDateTime offsetDateTime); static OffsetDateTime toOffsetDateTime(final DateTime dateTime); static Duration toJavaDuration(final org.joda.time.Duration jodaDuration); static org.joda.time.Duration toJodaDuration(final Duration javaDuration); }
DateHelper { @Nullable public static DateTime toDateTime(@Nullable final Date date) { if (date == null) { return null; } return new DateTime(date.getTime()); } private  DateHelper(); @Nullable static Date copy(@Nullable final Date date); @Nullable static DateTime toDateTime(@Nullable final Date date); @Nullable static Date toDate(@Nullable final DateTime dateTime); static DateTime toDateTime(final OffsetDateTime offsetDateTime); static OffsetDateTime toOffsetDateTime(final DateTime dateTime); static Duration toJavaDuration(final org.joda.time.Duration jodaDuration); static org.joda.time.Duration toJodaDuration(final Duration javaDuration);  }