Comments (5)
Hi,
I've checked this:
final g = Gregorian(2124, 3, 20);
final j = g.toJalali();
print('$g == $j');
this will print:
Gregorian(2124, 3, 20, 0, 0, 0, 0) == Jalali(1502, 12, 30, 0, 0, 0, 0)
from shamsi_date.
if you check time.ir
site date conversion, it says that it is correct.
from shamsi_date.
time.ir has some issues for this date:
please, check the leap year rule and the the test set that Roozbeh provided.
from shamsi_date.
the last line included in the file that you mentioned is
1498* 2119-03-21
so no info about 2124.
from shamsi_date.
with this simple code:
import 'package:shamsi_date/shamsi_date.dart';
void main() {
for (int jy = 1206; jy <= 1498; jy++) {
var j = Jalali(jy);
var jf = j.formatter;
var g = j.toGregorian();
var gf = g.formatter;
var s = StringBuffer();
s.write(jf.yyyy);
if (j.isLeapYear()) {
s.write("*");
}
s.write(" ${gf.yyyy}-${gf.mm}-${gf.dd}");
print(s);
}
}
if you compare the output and the file provided by Roozbeh,
you can see that (aprt from ** s in the file, which i will output * s in place of them),
the contents are equal.
from shamsi_date.
Related Issues (19)
- Make dates comparable HOT 2
- copy(), withDay(), ... not exist HOT 1
- addMonth() make invalid date in some cases HOT 5
- Diff 2 dates HOT 1
- How to access time data? HOT 2
- Why screenshots of calendar is not included in this package? HOT 3
- Jalali day is out of range HOT 2
- Convert To Jalali directly from '2021-02-10T17:42:01' HOT 5
- Jalali day is out of valid range. HOT 7
- The method distanceTo isn't defined for type Jalali HOT 6
- Jalali day is out of valid range HOT 9
- bug in addMonths method HOT 5
- Month checking Issue HOT 3
- is it possible get holidays HOT 1
- .toIso8601String() extension support HOT 1
- month range error HOT 5
- when i add shamsi_date package to dependencies and run pub get i get this error Package not available (authorization failed)
- error when i add the package to dependencies
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from shamsi_date.