Skip to content

Commit

Permalink
Update Event.swift
Browse files Browse the repository at this point in the history
  • Loading branch information
rismay committed Nov 18, 2024
1 parent a6231a9 commit 506d8b4
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Sources/WrkstrmFoundation/Collections/Event.swift
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,14 @@ extension Calendar {
start = startDate
end = Date(timeIntervalSinceNow: start.timeIntervalSinceNow + 100_000)
}

/// Default initializer with a start and end date for an event.
/// - Parameter start: The starting date of the event.
/// - Parameter end: The ending date of the event.
public init(start: Date, end: Date) {
self.start = start
self.end = end
}

/// Determines if the event overlaps with another event, considering an optional gap.
/// - Parameters:
Expand Down

0 comments on commit 506d8b4

Please sign in to comment.