Skip to content

Commit 4dc91bf

Browse files
phausleritingliu
andauthored
Update Proposals/NNNN-UTCClock.md
Co-authored-by: Tina L <49205802+itingliu@users.noreply.github.com>
1 parent 2077abe commit 4dc91bf

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Proposals/NNNN-UTCClock.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ extension UTCClock: Clock {
6464
The extension of `Date` conforms it to `InstantProtocol` and adds one addition "near miss" of the protocol as an additional function that in practice feels like a default parameter. This `duration(to:includingLeapSeconds:)` function provides the calculation of the duration from one point in time to another and calculates if the span between the two points includes a leap second or not. This calculation can be used for historical astronomical data since the irregularity of the rotation causes variation in the observed solar time. Those points are historically fixed and are a known series of events at specific dates (in UTC)[^utclist].
6565

6666
```swift
67+
@available(FoundationPreview 6.2, *)
6768
extension Date: InstantProtocol {
6869
public func advanced(by duration: Duration) -> Date
6970
public func duration(to other: Date) -> Duration

0 commit comments

Comments
 (0)