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

BREAKING: Refactor and add more time utils #9

Merged
merged 6 commits into from
May 16, 2022
Merged

Conversation

rekmarks
Copy link
Member

This PR refactors the time utils and adds an inMilliseconds function. Week and Year are added to to the time constants, and the constants are moved to a new enum, Duration. inMilliseconds returns the specified number of units of time, in milliseconds.

@rekmarks rekmarks requested a review from a team as a code owner May 16, 2022 02:19
src/time.ts Outdated Show resolved Hide resolved
rekmarks and others added 2 commits May 16, 2022 10:10
Co-authored-by: Maarten Zuidhoorn <maarten@zuidhoorn.com>
src/time.ts Outdated Show resolved Hide resolved
src/time.ts Outdated Show resolved Hide resolved
src/time.ts Outdated Show resolved Hide resolved
@rekmarks rekmarks merged commit 9e631c1 into main May 16, 2022
@rekmarks rekmarks deleted the add-more-time-utils branch May 16, 2022 17:24
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