public final class TimescaleHelper extends Object
| Constructor and Description |
|---|
TimescaleHelper() |
| Modifier and Type | Method and Description |
|---|---|
List<LocalDateTimeRange> |
createTimescale(LocalDateTime startDate,
int count,
TimescaleUnits units)
Given a start date, the number of ranges required, and a timescale unit, this
method creates a list of date ranges.
|
List<LocalDateTimeRange> |
createTimescale(LocalDateTime startDate,
LocalDateTime endDate,
TimescaleUnits units)
Given a start date, an end date, and a timescale unit, this
method creates a list of date ranges.
|
DayOfWeek |
getWeekStartDay()
Retrieves the day on which the week starts.
|
void |
setWeekStartDay(DayOfWeek weekStartDay)
Set the day on which the week starts.
|
public final List<LocalDateTimeRange> createTimescale(LocalDateTime startDate, int count, TimescaleUnits units)
startDate - start datecount - number of ranges requiredunits - units to be represented by each rangepublic final List<LocalDateTimeRange> createTimescale(LocalDateTime startDate, LocalDateTime endDate, TimescaleUnits units)
startDate - start dateendDate - end dateunits - units to be represented by each rangepublic void setWeekStartDay(DayOfWeek weekStartDay)
weekStartDay - week start daypublic DayOfWeek getWeekStartDay()
Copyright © 2000–2026 MPXJ. All rights reserved.