public class NearestDateUtils extends Object
Modifier and Type | Class and Description |
---|---|
protected static class |
NearestDateUtils.TimeInterval
Specifies the time grouping to be used with the nearest date function
|
Constructor and Description |
---|
NearestDateUtils() |
Modifier and Type | Method and Description |
---|---|
static LocalDateTime |
getDate(LocalDateTime d,
String interval)
This function takes a Java LocalDateTime object, and an interval string and returns
the nearest date closets to that time.
|
public static final LocalDateTime getDate(LocalDateTime d, String interval)
d
- the original datetime before adjustmentsinterval
- The interval string to deduct from the supplied dateCopyright © 2021 The Apache Software Foundation. All rights reserved.