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

Add TypedDate typealiases for various date components #4

Merged
merged 1 commit into from
Dec 10, 2023

Conversation

Ryu0118
Copy link
Owner

@Ryu0118 Ryu0118 commented Dec 10, 2023

When specifying up to nanoseconds or seconds in TypedDate, writing out the full type names can be quite cumbersome. To simplify this, I have added typealiases like TypedDateOfYear and TypedDateOfNanosecond to make the usage more concise and user-friendly.

let date1: TypedDate<(Year, Month, Day, Hour, Minute, Second, Nanosecond)>
let date2: TypedDateOfNanosecond

// date1 and date2 have the same type

@Ryu0118 Ryu0118 merged commit 6a8b51a into main Dec 10, 2023
2 checks passed
@Ryu0118 Ryu0118 deleted the feature/typed-date-of branch December 10, 2023 11:27
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

1 participant