public class TimeWindow extends Object
Modifier and Type | Method and Description |
---|---|
List<DayOfWeek> |
days()
Returns days in this time window
|
static TimeWindow |
from(String daySpec,
String hourSpec,
String zoneSpec)
Parse a time window from the given day, hour and time zone specification
|
List<Integer> |
hours()
Returns hours in this time window
|
boolean |
includes(Instant instant)
Returns whether the given instant is in this time window
|
String |
toString() |
ZoneId |
zone()
Returns the time zone of this time window
|
public ZoneId zone()
public boolean includes(Instant instant)
public static TimeWindow from(String daySpec, String hourSpec, String zoneSpec)
Copyright © 2018. All rights reserved.