Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@guizmaii
Copy link
Member

No description provided.

@guizmaii guizmaii closed this Aug 29, 2023
@guizmaii guizmaii deleted the optimise_current_time branch August 29, 2023 09:34
@guizmaii guizmaii restored the optimise_current_time branch August 29, 2023 09:35
@guizmaii guizmaii reopened this Aug 29, 2023
@guizmaii guizmaii force-pushed the optimise_current_time branch from 0d5fbee to 4664de5 Compare August 29, 2023 09:36
case TimeUnit.MICROSECONDS =>
inst.getEpochSecond * 1000000 + inst.getNano / 1000
case _ => unit.convert(inst.toEpochMilli, TimeUnit.MILLISECONDS)
case TimeUnit.MILLISECONDS => inst.toEpochMilli
Copy link
Member Author

@guizmaii guizmaii Aug 29, 2023

Choose a reason for hiding this comment

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

I might be wrong but I'm not sure we need to call unit.convert in this case 🤔

@adamgfraser adamgfraser merged commit 4e9809c into zio:series/2.x Aug 29, 2023
@guizmaii guizmaii deleted the optimise_current_time branch August 29, 2023 14:18
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