public class TimeIntervalNamer extends Object
Constructor and Description |
---|
TimeIntervalNamer(java.time.ZoneOffset offset) |
Modifier and Type | Method and Description |
---|---|
String |
nameFor(java.time.LocalDateTime start,
java.time.LocalDateTime end,
DateStyle dateStyle,
TimeStyle timeStyle)
Derives a name from the time-range in the cluster and some parameters.
|
public String nameFor(java.time.LocalDateTime start, java.time.LocalDateTime end, DateStyle dateStyle, TimeStyle timeStyle)
If ignoreDate
and ignoreTime
are bothSet, the date is included
nevertheless, so the name is not empty.
start
- minimum date-time in rangeend
- maximum date-time in rangedateStyle
- how to style the date in the name.timeStyle
- how to style the time in the name.Copyright © 2010–2023 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche. All rights reserved.