public class Year extends Time2
Time2
with year resolution.
The domain label is yearly.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 |
---|
Year(long year)
Construct a
yearlytime from the given time components. |
Year(String date)
Construct a
yearlytime from a string. |
Year(TimeIndex time)
Construct a
yearlytime from another time object. |
public static final String LABEL
public static final TimeDomain DOMAIN
public Year(TimeIndex time) throws T2Exception
yearlytime from another time object.
time
- a non-null time in the domain yearly
T2Exception
public Year(String date) throws T2Exception
yearlytime from a string.
date
- a non-null stringT2Exception
public Year(long year) throws T2Exception
yearlytime from the given time components.
year
- a non-negative numberT2Exception
Copyright © 2017. All rights reserved.