JDate constructor
JDate(])
Constructs a JDate instance specified in the local time zone.
For example, to create a new JDate object representing the 5th of Khordad 1377, 5:30pm
var dentistAppointment = JDate(1377, 3, 7, 17, 30);
Implementation
JDate(
int year, [
int month = 1,
int day = 1,
int hour = 0,
int minute = 0,
int second = 0,
int millisecond = 0,
int microsecond = 0,
]) {
final greg = jalaliToGregorian(year, month, day);
final datetime = DateTime(
greg.year,
greg.month,
greg.day,
hour,
minute,
second,
millisecond,
microsecond,
);
_internal(datetime);
}