CocoaPods trunk is moving to be read-only. Read more on the blog, there are 14 months to go.
| TestsTested | ✓ |
| LangLanguage | SwiftSwift |
| License | MIT |
| ReleasedLast Release | May 2017 |
| SwiftSwift Version | 3.1 |
| SPMSupports SPM | ✗ |
Maintained by Yuki Mishima.
Simple clock model written in Swift.
ClockTime(hour: 23, minute: 59, second: 59)! + 1
// -> 0h 0m 0sClockTime(hour: 0, minute: 0, second: 0)! - 1
// -> 23h 59m 59sClockTime(hour: 0, minute: 0, second: 0)! == ClockTime(hour: 0, minute: 0, second: 0)!
// -> true
ClockTime(hour: 0, minute: 0, second: 1)! > ClockTime(hour: 0, minute: 0, second: 0)!
// -> trueClockTime(hour: 0, minute: 0, second: 0)!.
isBetween(
beginning: ClockTime(hour: 23, minute: 59, second: 59)!,
end: ClockTime(hour: 0, minute: 0, second: 1)!
)
// -> trueSwift 3
pod "ClockTime"ClockTime is available under the MIT license. See the LICENSE file for more info.