Maven module :un.api : api-time :
Class : un.impl.timejvm.PetrinianDate
Extends/Implements : un.impl.timejvm.WeekDate java.time.temporal.Temporal java.time.temporal.TemporalAdjuster java.time.chrono.ChronoLocalDate java.io.Serializable
Subclasses : -

author  Samuel Andrés


Variables : MIN, MAX, DAYS_0000_PETRINIAN_TO_1970_GREGORIAN
Functions : getMonth, isSupported, until, isSupported, range, get, getLong, getChronology, lengthOfMonth, until, compareTo, isAfter, isBefore, isEqual, equals, toEpochDay, getDayOfWeek, isLeapYear, getDayOfYear, 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 PetrinianDate MIN

public PetrinianDate MAX


Nombre de jours entre le début de l'ère chrétienne (1er janvier 0 pétrinien)
et le début de l'ère Java (1er janvier 1970 grégorien).


Du 1/1/0 (pétrinien) au 1/1/2000 (pétrinien) : 20 siècles
Du 1/1/2000 (pétrinien) au 1/1/1970 (pétrinien) : 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.
Du 1/1/1970 (pétrinien) au 1/1/1970 (grégorien) : on retire 13 jours de
décalage entre les deux calendriers à cette date (*).

Vaut 719730 jours.

Note : Il y a 719730 jours entre le 1/1/1 pétrinien et le 1/1/1970
grégorien alors qu'il y a 719728 jours entre le 1/1/1 grégorien et le
1/1/1970 grégorien car le 1/1/1 pétrinien et le 1/1/1 pétrinien sont
en décalage théorique de deux jours à cette date (*).

(*) Les deux calendriers sont synchronisés au 1er janvier 200
(grégorien/pétrinien) et pendant tout le 3e siècle. Le calendrier
grégorien compense le décalage astronomique du calendrier pétrinien
environ depuis le Concile de Nicée qui a établi la pascalie au 4e siècle
(325).
long DAYS_0000_PETRINIAN_TO_1970_GREGORIAN


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 PetrinianChronology getChronology ()

public int lengthOfMonth ()

public ChronoPeriod 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)


return
public long toEpochDay ()


return
public DayOfWeek getDayOfWeek ()


return
public boolean isLeapYear ()


return
public int getDayOfYear ()

public PetrinianDate with (TemporalAdjuster adjuster)

public PetrinianDate with (TemporalField field, long newValue)

public PetrinianDate withYear (int year)

public PetrinianDate withMonth (int month)

public PetrinianDate withDayOfMonth (int dayOfMonth)

public PetrinianDate withDayOfYear (int dayOfYear)

public PetrinianDate plus (TemporalAmount amountToAdd)

public PetrinianDate plus (long amountToAdd, TemporalUnit unit)

public PetrinianDate plusYears (long yearsToAdd)

public PetrinianDate plusMonths (long monthsToAdd)

public PetrinianDate plusWeeks (long weeksToAdd)

public PetrinianDate plusDays (long daysToAdd)

public PetrinianDate minus (TemporalAmount amountToSubtract)

public PetrinianDate minus (long amountToSubtract, TemporalUnit unit)

public PetrinianDate minusYears (long yearsToSubtract)

public PetrinianDate minusMonths (long monthsToSubtract)

public PetrinianDate minusWeeks (long weeksToSubtract)

public PetrinianDate minusDays (long daysToSubtract)

public R query (TemporalQuery query)



public String toString ()


param  year
param  month
param  dayOfMonth
return
public PetrinianDate of (int year, int month, int dayOfMonth)


param  year
param  month
param  dayOfMonth
return
public PetrinianDate of (int year, Month month, int dayOfMonth)


param  year
param  dayOfYear
return
public PetrinianDate ofYearDay (int year, int dayOfYear)


param  epochDay
return
public PetrinianDate ofEpochDay (long epochDay)


param  temporal
return
public PetrinianDate from (TemporalAccessor temporal)

public PetrinianDate now (Clock clock)

public PetrinianDate now (ZoneId zone)

public PetrinianDate now ()

public PetrinianDate parse (CharSequence text)

public PetrinianDate parse (CharSequence text, DateTimeFormatter formatter)