Skip to content

Duration support#151

Merged
kaushikgopal merged 2 commits intomasterfrom
jawn/duration
Mar 29, 2023
Merged

Duration support#151
kaushikgopal merged 2 commits intomasterfrom
jawn/duration

Conversation

@Jawnnypoo
Copy link
Member

Kotlin has Duration, which is nice because you can specify in .milliseconds, .hours, or whatever else you like. So, this would be a nice way of allowing users to not have to convert everything to milliseconds if they wanted to use seconds or minutes.

Internally, within Sntp, it will still use milliseconds, since I don't think we want to deal with the interop of using Kotlin duration within Java 😅

@Jawnnypoo Jawnnypoo requested a review from kaushikgopal March 20, 2023 20:47
@kaushikgopal
Copy link
Collaborator

@Jawnnypoo i think the spotless checks are failing 😎 . glad that's working. let me push a small commit up and see if i can get this passing again.

@kaushikgopal
Copy link
Collaborator

This change makes sense to me. it feels fair to push to a newer construct/object when configuring TrueTime. In #150 where we're moving away from Date for the basic apis... makes me a little nervous.

Copy link
Collaborator

@kaushikgopal kaushikgopal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

waiting for CI to pass, will merge right after 🙏🏽

@kaushikgopal kaushikgopal merged commit f8c52ac into master Mar 29, 2023
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.

2 participants