Class Rounding

java.lang.Object
org.elasticsearch.common.Rounding
All Implemented Interfaces:
Writeable

public abstract class Rounding extends Object implements Writeable
A strategy for rounding milliseconds since epoch.

There are two implementations for rounding. The first one requires a date time unit and rounds to the supplied date time unit (i.e. quarter of year, day of month). The second one allows you to specify an interval to round to.

See this blog for some background reading. Its super interesting and the links are a comedy gold mine. If you like time zones. Or hate them.