Skip to content

Flutter Package for Ethiopian Calendar.

License

Notifications You must be signed in to change notification settings

ElshadaiK/Abushakir

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Abushakir (ባሕረ ሃሳብ)

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.

Prerequisites

Before you begin, ensure you have met the following requirements:

  • equatable= ^1.1.0

Getting started

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';

Example

// 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])
*/

Contributing to

To contribute to , follow these steps:

  1. Fork this repository.
  2. Create a branch: git checkout -b <branch_name>.
  3. Make your changes and commit them: git commit -m '<commit_message>'
  4. Push to the original branch: git push origin Abushakir/<location>
  5. Create the pull request.

Alternatively see the GitHub documentation on creating a pull request.

Contributors

Thanks to the following people who have contributed to this project:

Contact

If you want to contact me you can reach me at [email protected].

License

This project is licensed under the MIT License - see the LICENSE.md file for details

About

Flutter Package for Ethiopian Calendar.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Dart 100.0%