public class Month extends Time2
Time2 with month resolution.
The domain label is monthly.| 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 |
|---|
Month(long year,
int month)
Construct a
monthlytime from the given time components. |
Month(String date)
Construct a
monthlytime from a string. |
Month(TimeIndex time)
Construct a
monthlytime from another time object. |
public static final String LABEL
public static final TimeDomain DOMAIN
public Month(TimeIndex time) throws T2Exception
monthlytime from another time object.
time - a non-null time in the domain monthly
T2Exceptionpublic Month(String date) throws T2Exception
monthlytime from a string.
date - a non-null stringT2Exceptionpublic Month(long year,
int month)
throws T2Exception
monthlytime from the given time components.
year - a non-negative numbermonth - a number in [1-12]T2ExceptionCopyright © 2017. All rights reserved.