public class Day extends Time2
Time2
with day resolution. The domain label is
daily. This is the only "user-friendy" domain object provided by this
package, because it is needed in the implementation.Modifier and Type | Field and Description |
---|---|
static TimeDomain |
DOMAIN
A constant holding the domain.
|
static String |
LABEL
A constant holding the domain label.
|
Constructor and Description |
---|
Day(long year,
int month,
int day)
Construct a
dailytime from the given time components. |
Day(String date)
Construct a
dailytime from a string. |
Day(TimeIndex time)
Construct a
dailytime from another time object. |
Modifier and Type | Method and Description |
---|---|
boolean |
isWeekEnd()
Return true if the day falls on a weekend.
|
public static final String LABEL
public static final TimeDomain DOMAIN
public Day(TimeIndex time) throws T2Exception
dailytime from another time object.
time
- a non-null time in the domain daily
T2Exception
public Day(String date) throws T2Exception
dailytime from a string.
date
- a non-null stringT2Exception
public Day(long year, int month, int day) throws T2Exception
dailytime from the given time components.
year
- a non-negative numbermonth
- a number in [1-12]day
- a number between 1 and the last day of the monthT2Exception
public boolean isWeekEnd() throws T2Exception
T2Exception
Copyright © 2017. All rights reserved.