mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
12 lines
197 B
Swift
12 lines
197 B
Swift
import Foundation
|
|
|
|
class B {
|
|
func f() -> Bool {
|
|
let now = NSDate()
|
|
let later = NSDate.distantFuture() as! NSDate
|
|
return now.compare(later) != .orderedDescending
|
|
}
|
|
}
|
|
|
|
print(B().f())
|