-
Methods in com.github.mfathi91.time that return PersianDate
| Modifier and Type |
Method |
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.
|