Skip to content

Commit

Permalink
Make GregorianDay & GegorianTimeOfDay conform to Withable
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeehut committed Mar 26, 2024
1 parent f2f36a5 commit ff6d1c0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Sources/HandySwift/Types/GregorianDay.swift
Original file line number Diff line number Diff line change
Expand Up @@ -180,3 +180,5 @@ extension GregorianDay {
/// The `GregorianDay` representing tomorrow's date.
public static var tomorrow: Self { GregorianDay(date: Date()).advanced(by: 1) }
}

extension GregorianDay: Withable {}
2 changes: 2 additions & 0 deletions Sources/HandySwift/Types/GregorianTimeOfDay.swift
Original file line number Diff line number Diff line change
Expand Up @@ -141,3 +141,5 @@ extension GregorianTimeOfDay {
/// The current time of day.
public static var now: Self { GregorianTimeOfDay(date: Date()) }
}

extension GregorianTimeOfDay: Withable {}

0 comments on commit ff6d1c0

Please sign in to comment.