| Modifier and Type | Field and Description |
|---|---|
static PersianDate |
PersianDate.MAX
The maximum supported persian date
1999-12-29. |
static PersianDate |
PersianDate.MIN
The minimum supported persian date
0001-01-01. |
| Modifier and Type | Method and Description |
|---|---|
PersianDate |
PersianChronology.date(int prolepticYear,
int month,
int dayOfMonth)
Obtains a local date in this chronology from the proleptic-year,
month-of-year and day-of-month fields.
|
PersianDate |
PersianChronology.date(java.time.temporal.TemporalAccessor temporal)
Obtains a local date in this chronology from another temporal object.
|
PersianDate |
PersianChronology.dateEpochDay(long epochDay)
Obtains a local date in this chronology from the epoch-day.
|
PersianDate |
PersianChronology.dateYearDay(int prolepticYear,
int dayOfYear)
Obtains a local date in this chronology from the proleptic-year and
day-of-year fields.
|
static PersianDate |
PersianDate.from(java.time.temporal.TemporalAccessor temporal)
Obtains an instance of
PersianDate from a temporal object. |
static PersianDate |
PersianDate.fromGregorian(java.time.LocalDate localDate)
Returns an instance of
PersianDate that is correspondent to the gregorian
date of parameter localDate. |
static PersianDate |
PersianDate.now()
Obtains current Persian date from the system clock in the default time zone.
|
static PersianDate |
PersianDate.of(int year,
int month,
int dayOfMonth)
Obtains an instance of
PersianDate with year, month and day of month. |
static PersianDate |
PersianDate.of(int year,
PersianMonth month,
int dayOfMonth)
Obtains an instance of
PersianDate with year, month and day of month. |
static PersianDate |
PersianDate.ofEpochDay(long epochDays)
Returns an instance of
PersianDate, based on number of epoch days,
which is from 1970-01-01. |
static PersianDate |
PersianDate.ofJulianDays(long julianDays)
Returns an instance of
PersianDate, based on number of julian days. |
static PersianDate |
PersianDate.parse(java.lang.CharSequence text)
Obtains an instance of
PersianDate from a text, assuming its format is yyyy-MM-dd. |
static PersianDate |
PersianDate.parse(java.lang.CharSequence text,
java.time.format.DateTimeFormatter formatter)
Obtains an instance of
PersianDate from a text string using a specific formatter. |
PersianDate |
PersianDate.plusDays(long daysToAdd)
Returns a copy of this
PersianDate with the specified number of days added. |
PersianDate |
PersianDate.plusMonths(long monthsToAdd)
Returns a copy of this
PersianDate with the specified period in months added. |
PersianDate |
PersianDate.plusYears(long yearsToAdd)
Returns a copy of this
PersianDate with the specified period in years added. |
PersianDate |
PersianDateTime.toLocalDate()
Returns the date part of this date-time.
|
| Modifier and Type | Method and Description |
|---|---|
java.time.chrono.ChronoZonedDateTime<PersianDate> |
PersianDateTime.atZone(java.time.ZoneId zoneId) |
java.time.chrono.ChronoLocalDateTime<PersianDate> |
PersianDateTime.plus(long amountToAdd,
java.time.temporal.TemporalUnit temporalUnit) |
java.time.chrono.ChronoLocalDateTime<PersianDate> |
PersianDateTime.with(java.time.temporal.TemporalField field,
long newValue) |
| Modifier and Type | Method and Description |
|---|---|
static PersianDateTime |
PersianDateTime.of(PersianDate date,
java.time.LocalTime time)
Obtains a new instance of this class with the given date and time.
|
Copyright © 2021. All rights reserved.