mirror of
https://github.com/acamarata/hijri-core-dart.git
synced 2026-07-02 03:30:41 +00:00
Compare commits
No commits in common. "main" and "v1.0.1" have entirely different histories.
1 changed files with 5 additions and 1 deletions
|
|
@ -239,7 +239,11 @@ HijriDate? _fcnaToHijri(DateTime date) {
|
|||
// This is symmetric with toGregorian, which always returns DateTime.utc().
|
||||
final d = date.toUtc();
|
||||
final inputMs =
|
||||
DateTime.utc(d.year, d.month, d.day).millisecondsSinceEpoch.toDouble();
|
||||
DateTime.utc(
|
||||
d.year,
|
||||
d.month,
|
||||
d.day,
|
||||
).millisecondsSinceEpoch.toDouble();
|
||||
|
||||
final kApprox = _utcMsToKApprox(inputMs - 15 * msPerDay);
|
||||
final k0 = kApprox.floor();
|
||||
|
|
|
|||
Loading…
Reference in a new issue