Created
February 18, 2021 07:57
-
-
Save gozzoo/64435d0ccd5f9cbd63119da8f2b44bbe to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Foundation | |
let now = Date() | |
let tomorrow = now.addingTimeInterval(86400) | |
let range = now ... tomorrow | |
print(range.contains(now)) | |
print(tomorrow) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment