Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Read Scala Duration #7867

Merged
merged 3 commits into from
Feb 27, 2023
Merged

Read Scala Duration #7867

merged 3 commits into from
Feb 27, 2023

Conversation

adamgfraser
Copy link
Contributor

In Config.duration we currently parse a duration using the Java format. However, ZIO Config previously parsed it using the Scala format. This PR updates the implementation to try to parse it as both a Java and a Scala format. We could potentially have a separate operator for this but I think it is nice for the user to just be able to specify their intention to read a duration and not have to worry about which format a ConfigProvider is using.

@adamgfraser adamgfraser merged commit 62a49ab into zio:series/2.x Feb 27, 2023
@adamgfraser adamgfraser deleted the duration branch February 27, 2023 15:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants