@Test public void convertFromGregorianCalendar() { Date date = converter.toDate((GregorianCalendar) GregorianCalendar.getInstance()); assertNotNull(date); }
@AtlasConversionInfo(sourceType = FieldType.DATE_TIME_TZ, targetType = FieldType.DATE_TIME) public Date toDate(GregorianCalendar calendar) { return zdtConverter.toDate(calendar.toZonedDateTime()); }
GregorianCalendarConverter implements AtlasConverter<GregorianCalendar> { @AtlasConversionInfo(sourceType = FieldType.DATE_TIME_TZ, targetType = FieldType.DATE_TIME) public Date toDate(GregorianCalendar calendar) { return zdtConverter.toDate(calendar.toZonedDateTime()); } }
GregorianCalendarConverter implements AtlasConverter<GregorianCalendar> { @AtlasConversionInfo(sourceType = FieldType.DATE_TIME_TZ, targetType = FieldType.DATE_TIME) public Date toDate(GregorianCalendar calendar) { return zdtConverter.toDate(calendar.toZonedDateTime()); }  }
GregorianCalendarConverter implements AtlasConverter<GregorianCalendar> { @AtlasConversionInfo(sourceType = FieldType.DATE_TIME_TZ, targetType = FieldType.DATE_TIME) public Date toDate(GregorianCalendar calendar) { return zdtConverter.toDate(calendar.toZonedDateTime()); }  @AtlasConversionInfo(sourceType = FieldType.DATE_TIME_TZ, targetType = FieldType.DATE_TIME_TZ) Calendar toCalendar(GregorianCalendar calendar); @AtlasConversionInfo(sourceType = FieldType.DATE_TIME_TZ, targetType = FieldType.DATE_TIME) Date toDate(GregorianCalendar calendar); @AtlasConversionInfo(sourceType = FieldType.DATE_TIME_TZ, targetType = FieldType.DATE) LocalDate toLocalDate(GregorianCalendar calendar); @AtlasConversionInfo(sourceType = FieldType.DATE_TIME_TZ, targetType = FieldType.DATE_TIME) LocalDateTime toLocalDateTime(GregorianCalendar calendar); @AtlasConversionInfo(sourceType = FieldType.DATE_TIME_TZ, targetType = FieldType.TIME) LocalTime toLocalTime(GregorianCalendar calendar); @AtlasConversionInfo(sourceType = FieldType.DATE_TIME_TZ, targetType = FieldType.DATE) java.sql.Date toSqlDate(GregorianCalendar calendar); @AtlasConversionInfo(sourceType = FieldType.DATE_TIME_TZ, targetType = FieldType.TIME) java.sql.Time toSqlTime(GregorianCalendar calendar); @AtlasConversionInfo(sourceType = FieldType.DATE_TIME_TZ, targetType = FieldType.DATE_TIME) java.sql.Timestamp toSqlTimestamp(GregorianCalendar calendar); @AtlasConversionInfo(sourceType = FieldType.DATE_TIME_TZ, targetType = FieldType.DATE_TIME_TZ) ZonedDateTime toZoneDateTime(GregorianCalendar calendar); }
GregorianCalendarConverter implements AtlasConverter<GregorianCalendar> { @AtlasConversionInfo(sourceType = FieldType.DATE_TIME_TZ, targetType = FieldType.DATE_TIME) public Date toDate(GregorianCalendar calendar) { return zdtConverter.toDate(calendar.toZonedDateTime()); }  @AtlasConversionInfo(sourceType = FieldType.DATE_TIME_TZ, targetType = FieldType.DATE_TIME_TZ) Calendar toCalendar(GregorianCalendar calendar); @AtlasConversionInfo(sourceType = FieldType.DATE_TIME_TZ, targetType = FieldType.DATE_TIME) Date toDate(GregorianCalendar calendar); @AtlasConversionInfo(sourceType = FieldType.DATE_TIME_TZ, targetType = FieldType.DATE) LocalDate toLocalDate(GregorianCalendar calendar); @AtlasConversionInfo(sourceType = FieldType.DATE_TIME_TZ, targetType = FieldType.DATE_TIME) LocalDateTime toLocalDateTime(GregorianCalendar calendar); @AtlasConversionInfo(sourceType = FieldType.DATE_TIME_TZ, targetType = FieldType.TIME) LocalTime toLocalTime(GregorianCalendar calendar); @AtlasConversionInfo(sourceType = FieldType.DATE_TIME_TZ, targetType = FieldType.DATE) java.sql.Date toSqlDate(GregorianCalendar calendar); @AtlasConversionInfo(sourceType = FieldType.DATE_TIME_TZ, targetType = FieldType.TIME) java.sql.Time toSqlTime(GregorianCalendar calendar); @AtlasConversionInfo(sourceType = FieldType.DATE_TIME_TZ, targetType = FieldType.DATE_TIME) java.sql.Timestamp toSqlTimestamp(GregorianCalendar calendar); @AtlasConversionInfo(sourceType = FieldType.DATE_TIME_TZ, targetType = FieldType.DATE_TIME_TZ) ZonedDateTime toZoneDateTime(GregorianCalendar calendar);  }