Skip to content

Commit

Permalink
Merge pull request #4 from Ryu0118/feature/typed-date-of
Browse files Browse the repository at this point in the history
Add TypedDate typealiases for various date components
  • Loading branch information
Ryu0118 committed Dec 10, 2023
2 parents 2c8bb99 + a3e7bcd commit 6a8b51a
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions Sources/TypedDate/TypedDateOf.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import Foundation

public typealias TypedDateOfYear = TypedDate<Year>
public typealias TypedDateOfMonth = TypedDate<(Year, Month)>
public typealias TypedDateOfDay = TypedDate<(Year, Month, Day)>
public typealias TypedDateOfHour = TypedDate<(Year, Month, Day, Hour)>
public typealias TypedDateOfMinute = TypedDate<(Year, Month, Day, Hour, Minute)>
public typealias TypedDateOfSecond = TypedDate<(Year, Month, Day, Hour, Minute, Second)>
public typealias TypedDateOfNanosecond = TypedDate<(Year, Month, Day, Hour, Minute, Second, Nanosecond)>

0 comments on commit 6a8b51a

Please sign in to comment.