Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dev-charles15531/orbita
A java package for DATE and TIME operations/manipulations.
https://github.com/dev-charles15531/orbita
Last synced: about 1 month ago
JSON representation
A java package for DATE and TIME operations/manipulations.
- Host: GitHub
- URL: https://github.com/dev-charles15531/orbita
- Owner: dev-charles15531
- License: mit
- Created: 2020-08-25T20:02:32.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-08-27T06:12:30.000Z (over 4 years ago)
- Last Synced: 2024-11-24T19:51:44.636Z (about 1 month ago)
- Language: Java
- Size: 24.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Orbita
A java package for DATE and TIME operations/manipulations.## Getting started..
- paste the **orbita** package folder in your project source folder.
- import the orbita package in your current working class.
- create a new instance of the Dater or Timer object using the format:
```java
//for date
Dater variable = new Dater();
//for time
Timer variable = new Timer();
```
## Operations/Manipulations..
- the Dater class has the following date operations/manipulatrions:
```java
//get date range from date(dd-MM-yyyy) argument [string]
variable.dateRangeFrom(argument);
//get current date in the format yyyy-MM-dd [string]
variable.getDate();
//get current weekday [string]
variable.getDay();
//get current day date [int]
variable.getDayNum();
//get current month [string]
variable.getMonth();
//get current month [int]
variable.getMonthNum();
//get current week [int]
variable.getWeek();
//get current year [int]
variable.getYear();
```
- the Timer class has the following time operations/manipulations:
```java
//get current time in the format HH:mm (24 hrs) [string]
variable.getTime();
//get current hour [int]
variable.getHour();
//get current minute [int]
variable.getMin();
//get current second [int]
variable.getSec();
//get time range from time(HH:mm) argument [string]
variable.TimeRangeFrom(time);
```
## License
**orbita** is released under the [MIT License](https://github.com/dev-charles15531/Orbita/blob/master/LICENSE.md).Created by **[Charles Paul](https://github.com/dev-charles15531)**