WIP - a lot of uncommitted work
This commit is contained in:
@@ -18,3 +18,13 @@ class Random {
|
||||
return updateTime
|
||||
}
|
||||
}
|
||||
|
||||
extension Date: RawRepresentable {
|
||||
public var rawValue: String {
|
||||
self.timeIntervalSinceReferenceDate.description
|
||||
}
|
||||
|
||||
public init?(rawValue: String) {
|
||||
self = Date(timeIntervalSinceReferenceDate: Double(rawValue) ?? 0.0)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user