interval.ceil()

interval.ceil(date)

Returns a new date representing the earliest interval boundary date after or equal to date. For example, timeDay.ceil(date) typically returns 12:00 AM local time on the date following the given date.

This method is idempotent: if the specified date is already ceilinged to the current interval, a new date with an identical time is returned. Furthermore, the returned date is the maximum expressible value of the associated interval, such that interval.ceil(interval.ceil(date) + 1) returns the following interval boundary date.

doc_D3_Js
2016-11-24 10:27:53
Comments
Leave a Comment

Please login to continue.