| Modifier and Type | Method and Description |
|---|---|
static PersianDateTime |
PersianDateTime.from(java.time.temporal.TemporalAccessor temporal)
Obtains an instance of this class from the given temporal object.
|
static PersianDateTime |
PersianDateTime.fromGregorian(java.time.LocalDateTime localDateTime)
Returns a new instance of Persian date-time, where the date part of the given date-time gets converted to Persian
date, and the time part of the returned date-time will remain unchanged.
|
static PersianDateTime |
PersianDateTime.now()
Returns an instance of this class with the actual current date and time.
|
static PersianDateTime |
PersianDateTime.of(int year,
int month,
int dayOfMonth,
int hour,
int minute)
Obtains an instance of
PersianDateTime with the given parameters, having second and nanosecond set to
zero. |
static PersianDateTime |
PersianDateTime.of(int year,
int month,
int dayOfMonth,
int hour,
int minute,
int second)
Obtains an instance of
PersianDateTime with the given parameters, having nanosecond set to zero. |
static PersianDateTime |
PersianDateTime.of(int year,
int month,
int dayOfMonth,
int hour,
int minute,
int second,
int nanoOfSecond)
Obtains an instance of
PersianDateTime with the given parameters. |
static PersianDateTime |
PersianDateTime.of(int year,
PersianMonth month,
int dayOfMonth,
int hour,
int minute)
Obtains an instance of
PersianDateTime with the given parameters, having second and nanosecond set to
zero. |
static PersianDateTime |
PersianDateTime.of(int year,
PersianMonth month,
int dayOfMonth,
int hour,
int minute,
int second)
Obtains an instance of
PersianDateTime with the given parameters, having nanosecond set to zero. |
static PersianDateTime |
PersianDateTime.of(int year,
PersianMonth month,
int dayOfMonth,
int hour,
int minute,
int second,
int nanoOfSecond)
Obtains an instance of
PersianDateTime with the given parameters. |
static PersianDateTime |
PersianDateTime.of(PersianDate date,
java.time.LocalTime time)
Obtains a new instance of this class with the given date and time.
|
static PersianDateTime |
PersianDateTime.parse(java.lang.CharSequence text)
Parses the given string into its corresponding Persian date-time.
|
static PersianDateTime |
PersianDateTime.parse(java.lang.CharSequence text,
java.time.format.DateTimeFormatter formatter)
Parses the given string with the given formatter into its corresponding Persian date-time.
|
Copyright © 2021. All rights reserved.