Skip to content

Commit

Permalink
Remove antiquated methods
Browse files Browse the repository at this point in the history
  • Loading branch information
jdereg committed Jan 26, 2024
1 parent 38b9a4d commit 99d9d6f
Showing 1 changed file with 1 addition and 17 deletions.
18 changes: 1 addition & 17 deletions src/main/java/com/cedarsoftware/util/convert/Converter.java
Original file line number Diff line number Diff line change
Expand Up @@ -1199,23 +1199,7 @@ public Convert<?> addConversion(Class<?> source, Class<?> target, Convert<?> con
target = toPrimitiveWrapperClass(target);
return factory.put(pair(source, target), conversionFunction);
}

public long localDateToMillis(LocalDate localDate, ZoneId zoneId) {
return localDate.atStartOfDay(zoneId).toInstant().toEpochMilli();
}

public long localDateToMillis(LocalDate localDate) {
return localDateToMillis(localDate, options.getZoneId());
}

public long localDateTimeToMillis(LocalDateTime localDateTime, ZoneId zoneId) {
return localDateTime.atZone(zoneId).toInstant().toEpochMilli();
}

public long zonedDateTimeToMillis(ZonedDateTime zonedDateTime) {
return zonedDateTime.toInstant().toEpochMilli();
}


/**
* Given a primitive class, return the Wrapper class equivalent.
*/
Expand Down

0 comments on commit 99d9d6f

Please sign in to comment.