https://github.com/etff/dateformatterkr
simplifies date formatting tasks for Korean users
https://github.com/etff/dateformatterkr
Last synced: 10 months ago
JSON representation
simplifies date formatting tasks for Korean users
- Host: GitHub
- URL: https://github.com/etff/dateformatterkr
- Owner: etff
- License: mit
- Created: 2024-07-29T08:54:35.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-08-03T06:22:55.000Z (almost 2 years ago)
- Last Synced: 2025-08-13T12:59:43.195Z (10 months ago)
- Language: Java
- Homepage:
- Size: 78.1 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# DateFormatterKR
DateFormatterKR is a Java library that simplifies date formatting tasks for Korean users.
It provides a set of utility methods for handling dates in various formats,
including relative time format, duration time format, and more.
## Features
- Format a date with a given pattern.
- Parse a date string with a given pattern.
- Get a list of dates between the start and end date.
- Get a relative time format between the start and target date.
- Get a duration time format between the start and end date.
- Get a day of week with a given date and text style.
- Check if the given date string is valid with the given pattern.
## Installation
### Gradle
Add the following dependency to your `build.gradle` file:
```groovy
dependencies {
implementation 'com.github.etff:DateFormatterKR:1.0.0'
}
```
## Maven
Add the following dependency to your pom.xml file:
``` xml
com.github.etff
DateFormatterKR
1.0.0
```
## Usage
Here is a basic example of using DateFormatterKR
```java
LocalDate startDate = LocalDate.of(2021, 1, 1);
LocalDate endDate = LocalDate.of(2021, 1, 3);
// Get dates in range
List dates = DateFormatterKR.getDatesInRange(startDate, endDate);
// Get relative time format
String relativeTime = DateFormatterKR.toRelativeTimeFormat(startDate, endDate);
// Get duration time format
String durationTime = DateFormatterKR.toDurationTimeFormat(startDate, endDate);
```
## License
License
This project is licensed under the terms of the MIT license.
For more information, see the LICENSE file.