eeverman / eeverman/andhow

Add ZonedDateTime Type

Open
#190 0 comments 0 reactions 0 assignees View on GitHub
enhancement good first issue Hacktoberfest help wanted
Dominant language
Java
Stars
25
Forks
34
PR merge metrics
No merged PRs in 30d

Description

There is already a [LocalDateTime](https://github.com/eeverman/andhow/blob/homepage/andhow-core/src/main/java/org/yarnandtail/andhow/property/LocalDateTimeProp.java), so task is a lot of copy/paste.

If you are unfamiliar with the project, please look over the [AndHow Site](https://www.andhowconfig.org) to get a basic understanding of what AndHow is, in particular, how [Properties](https://www.andhowconfig.org/user-guide/andhow-properties) are used.

For this task:
- Be sure to work from the main branch
- Create a new ZonedDateTimeType, similar to [LocalDateTimeType](https://github.com/eeverman/andhow/blob/homepage/andhow-core/src/main/java/org/yarnandtail/andhow/valuetype/LocalDateTimeType.java) except based on ZonedDateTime.
- Create a new ZonedDateTimeValidator, similar to [LocalDateTimeValidator](https://github.com/eeverman/andhow/blob/homepage/andhow-core/src/main/java/org/yarnandtail/andhow/valid/LocalDateTimeValidator.java), but using the ZonedDateTime type.
- Create a new ZonedDateTimeProp, similar to [LocalDateTimeProp](https://github.com/eeverman/andhow/blob/homepage/andhow-core/src/main/java/org/yarnandtail/andhow/property/LocalDateTimeProp.java), except using your new ZonedDateTimeType and ZonedDateTimeValidator, and basically replacing references to LocalDateTime to ZonedDateTime.
- Create new tests for each class (can be copied from existing test classes)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.