public class Workday extends Time2
Time2 with day resolution and a cycle of 2 days OFF
days and 5 days ON. The domain label is workweek. The days OFF are
Saturday and Sunday.| 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 |
|---|
Workday(long year,
int month,
int day,
Adjustment adjust)
Construct a
workweektime from the given time components. |
Workday(String date)
Construct a
workweektime from a string. |
Workday(String date,
Adjustment adjust)
Construct a
workweektime from a string. |
Workday(TimeIndex time)
Construct a
workweektime from another time object. |
public static final String LABEL
public static final TimeDomain DOMAIN
public Workday(TimeIndex time) throws T2Exception
workweektime from another time object.
time - a non-null time in the domain workweek
T2Exceptionpublic Workday(String date) throws T2Exception
workweektime from a string.
date - a non-null stringT2Exceptionpublic Workday(String date, Adjustment adjust) throws T2Exception
workweektime from a string.
date - a non-null stringadjust - a non-null adjustment modeT2Exceptionpublic Workday(long year,
int month,
int day,
Adjustment adjust)
throws T2Exception
workweektime 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 monthadjust - a non-null adjustment modeT2ExceptionCopyright © 2017. All rights reserved.