public final class TimescaleUtility extends Object
Constructor and Description |
---|
TimescaleUtility() |
Modifier and Type | Method and Description |
---|---|
ArrayList<LocalDateTimeRange> |
createTimescale(LocalDateTime startDate,
TimescaleUnits segmentUnit,
int segmentCount)
Given a start date, a timescale unit, and a number of segments, this
method creates an array 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 ArrayList<LocalDateTimeRange> createTimescale(LocalDateTime startDate, TimescaleUnits segmentUnit, int segmentCount)
startDate
- start datesegmentUnit
- units to be represented by each segment (column)segmentCount
- number of segments (columns) requiredpublic void setWeekStartDay(DayOfWeek weekStartDay)
weekStartDay
- week start daypublic DayOfWeek getWeekStartDay()
Copyright © 2000–2024 Packwood Software. All rights reserved.