Maven module :un.api : api-time :
Class :
un.impl.timejvm.GregorianDate
Extends/Implements :
un.impl.timejvm.WeekDate
java.time.temporal.Temporal
java.time.temporal.TemporalAdjuster
java.time.chrono.ChronoLocalDate
java.io.Serializable
Subclasses : -
Variables :
MIN,
MAX,
DAYS_0000_TO_1970
Functions :
getMonth,
isSupported,
until,
isSupported,
range,
get,
getLong,
getChronology,
lengthOfMonth,
until,
compareTo,
isAfter,
isBefore,
isEqual,
equals,
toEpochDay,
getDayOfWeek,
isLeapYear,
getDayOfYear,
getDayOfYear2,
with,
with,
withYear,
withMonth,
withDayOfMonth,
withDayOfYear,
plus,
plus,
plusYears,
plusMonths,
plusWeeks,
plusDays,
minus,
minus,
minusYears,
minusMonths,
minusWeeks,
minusDays,
query,
toString,
of,
of,
ofYearDay,
ofEpochDay,
from,
now,
now,
now,
parse,
parse
public GregorianDate
MIN
public GregorianDate
MAX
long
DAYS_0000_TO_1970
public Month
getMonth ()
public boolean
isSupported (TemporalUnit unit)
public long
until (Temporal endExclusive, TemporalUnit unit)
public boolean
isSupported (TemporalField field)
public ValueRange
range (TemporalField field)
public int
get (TemporalField field)
public long
getLong (TemporalField field)
public GregorianChronology
getChronology ()
public int
lengthOfMonth ()
public GregorianPeriod
until (ChronoLocalDate endDateExclusive)
public int
compareTo (ChronoLocalDate other)
public boolean
isAfter (ChronoLocalDate other)
public boolean
isBefore (ChronoLocalDate other)
public boolean
isEqual (ChronoLocalDate other)
public boolean
equals (Object obj)
public long
toEpochDay ()
public DayOfWeek
getDayOfWeek ()
public boolean
isLeapYear ()
public int
getDayOfYear ()
public int
getDayOfYear2 ()
public GregorianDate
with (TemporalAdjuster adjuster)
public GregorianDate
with (TemporalField field, long newValue)
public GregorianDate
withYear (int year)
public GregorianDate
withMonth (int month)
public GregorianDate
withDayOfMonth (int dayOfMonth)
public GregorianDate
withDayOfYear (int dayOfYear)
public GregorianDate
plus (TemporalAmount amountToAdd)
public GregorianDate
plus (long amountToAdd, TemporalUnit unit)
public GregorianDate
plusYears (long yearsToAdd)
public GregorianDate
plusMonths (long monthsToAdd)
public GregorianDate
plusWeeks (long weeksToAdd)
public GregorianDate
plusDays (long daysToAdd)
public GregorianDate
minus (TemporalAmount amountToSubtract)
public GregorianDate
minus (long amountToSubtract, TemporalUnit unit)
public GregorianDate
minusYears (long yearsToSubtract)
public GregorianDate
minusMonths (long monthsToSubtract)
public GregorianDate
minusWeeks (long weeksToSubtract)
public GregorianDate
minusDays (long daysToSubtract)
public R
query (TemporalQuery query)
public String
toString ()
public GregorianDate
of (int year, int month, int dayOfMonth)
public GregorianDate
of (int year, Month month, int dayOfMonth)
public GregorianDate
ofYearDay (int year, int dayOfYear)
public GregorianDate
ofEpochDay (long epochDay)
public GregorianDate
from (TemporalAccessor temporal)
public GregorianDate
now (Clock clock)
public GregorianDate
now (ZoneId zone)
public GregorianDate
now ()
public GregorianDate
parse (CharSequence text)
public GregorianDate
parse (CharSequence text, DateTimeFormatter formatter)
début de l'ère Java (1er janvier 1970).
De 0 à 2000 = 5 cycles grégoriens de 4 siècles.
De 2000 à 1970, on retire 30 années de 365 jours et encore 7 jours
supplémentaires correspondants aux jours des 7 années bissextiles entre
1970 et 2000.
Vaut 719728 jours.