Abushakir is a package that allows developers to implement ethiopian calendar system and DateTime System in their application(s)`.
This package is implemented using the UNIX EPOCH which means it's not a conversion of any other calendar system into ethiopian, for instance, Gregorian Calendar into Ethiopian.
Before you begin, ensure you have met the following requirements:
equatable= ^1.1.0
In the pubspec.yaml
of your flutter project, add the following dependency:
dependencies:
...
abushakir: "^0.0.1"
In your library add the following import:
import 'package:abushakir/abushakir.dart';
// Ethiopain Date and Time
EtDatetime aMoment = EtDatetime.parse("2011-13-06 02:15:22");
print("Year: ${aMoment.year}");
print("Month: ${aMoment.month}");
print("Day: ${aMoment.day}");
print("Hour: ${aMoment.hour}");
print("Minutes: ${aMoment.minute}");
print("Seconds: ${aMoment.second}");
print("MilliSeconds: ${aMoment.millisecond}");
print("To String: ${aMoment.toString()}");
print("To JSON: ${aMoment.toJson()}");
print("To ISO8601String Format: ${aMoment.toIso8601String()}");
print("The Month is ${aMoment.monthGeez}");
/// OUTPUT
/*
* Year: 2011
* Month: 13
* Day: 6
* Hour: 14
* Minutes: 15
* Seconds: 22
* MilliSeconds: MilliSeconds: 0
* To String: 2011-13-06 14:15:22.000
* To JSON: {"year":"2011","month":"13","date":"06","hour":"14","min":"15","sec":"22","ms":"000"}
* To ISO8601String Format: 2011-13-06T14:15:22.000
* The Month is ጷጉሜን
*/
/// Ethiopian Calendar
ETC et = new ETC(year: aMoment.year, month: aMoment.month);
/// OUTPUT
/*
*Days in the month 13 of 2011:= ([2011, 13, 1, 4], [2011, 13, 2, 5], [2011, 13, 3, 6], ..., [2011, 13, 5, 1], [2011, 13, 6, 2])
*/
To contribute to , follow these steps:
- Fork this repository.
- Create a branch:
git checkout -b <branch_name>
. - Make your changes and commit them:
git commit -m '<commit_message>'
- Push to the original branch:
git push origin Abushakir/<location>
- Create the pull request.
Alternatively see the GitHub documentation on creating a pull request.
Thanks to the following people who have contributed to this project:
If you want to contact me you can reach me at [email protected].
This project is licensed under the MIT License - see the LICENSE.md file for details