Skip to content

Add an implementation of the UTCClock and associated tests #1344

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

phausler
Copy link
Contributor

@phausler phausler commented Jun 10, 2025

This is an implementation of the proposal #1342

@phausler
Copy link
Contributor Author

@swift-ci please test

@itingliu itingliu added the API Change Any changes to Foundation's public API surface label Jun 10, 2025
#endif

#if canImport(FoundationEssentials)
@testable import FoundationEssentials
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this test need a @testable import? If not, I think you can remove this. If it does, I think you'll want an #else branch that has @testable import Foundation to make sure this works for FOUNDATION_FRAMEWORK where FoundationEssentials doesn't exist

@benrimmington
Copy link

Can the empty UTCClock struct be @frozen or BitwiseCopyable?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
API Change Any changes to Foundation's public API surface
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants