Swift package offering TAI64n label parsing to create a Date object, and a getter property to produce a TAI64n label.
It is implemented as an extension to the Date object
init?(tai64nLabel: String) -> Date?
tai64nlabel: String
let dt = Date(tai64nLabel: "@400000000000000000000000") // 1969-12-31T23:59:50.000
dt?.tai64nlabel // @400000000000000000000000
link |
Stars: 0 |
Last commit: 41 weeks ago |
Only tested for rudimentary and some edge cases
Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics