Kolokodess / Language_Time

A library that converts Time to its equivalent basic local Nigeria languages (Yoruba, Hausa and Igbo)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Language_Time

A library that converts Time to its equivalent basic local Nigeria languages (Yoruba, Hausa and Igbo)

Setting up

Dependency

  • Maven
<dependency>
  <groupId>com.crevation.NgTime</groupId>
  <artifactId>crev-NgTime</artifactId>
  <version>0.1</version>
  <type>pom</type>
</dependency>
  • Gradle
compile 'com.crevation.NgTime:crev-NgTime:0.1'

Usage

	//instatntiate the language of your choice, Yoruba in this case
 	Time yoruba = new Yoruba();

	//you can as well use other languages available
        Time igbo = new Igbo();
        Time hausa = new Hausa();

        String yorubaTime = yoruba.getTime("4:00");
        String currentTime = yoruba.getCurrentTime();
        String calendarTime = yoruba.getTime(Calendar.getInstance());
        String dateTime = yoruba.getTime(new Date());   

Test

There is a local unit test class here in the test folder

Contributors

Contributions

Thank you for showing interest to contribute to this project, we are looking forward to
adding more languages, English is already in pipeline

All you need to do is:

License

Copyright 2017 Adetuyi Tolu Emmanuel

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at Apache license 2.0

About

A library that converts Time to its equivalent basic local Nigeria languages (Yoruba, Hausa and Igbo)


Languages

Language:Java 100.0%