public interface GregorianDate
Defines a common calendar date which is based on gregorian calendar rules.
| Modifier and Type | Method and Description |
|---|---|
int |
getDayOfMonth()
Yields the day of month.
|
int |
getMonth()
Yields the gregorian month as integer.
|
int |
getYear()
Yields the proleptic year according to ISO-8601.
|
String |
toString()
Yields a canonical representation in ISO-format
"YYYY-MM-DD".
|
int getYear()
Yields the proleptic year according to ISO-8601.
The term proleptic means that the gregorian calendar rules are applied backwards even before the introduction of this calendar. Second: The year numbering is just the mathematical one as defined in ISO-8601 such that there is a year zero and even negative years: -2 = BC 3, -1 = BC 2, 0 = BC 1, 1 = AD 1, 2 = AD 2, ...
GregorianMath.MIN_YEAR - GregorianMath.MAX_YEARint getMonth()
Yields the gregorian month as integer.
int getDayOfMonth()
Yields the day of month.
1 <= dayOfMonth <= 31Copyright © 2014–2017. All rights reserved.