Date
extension Date: BSONValue
An extension of Date
to represent the BSON Datetime type. Supports millisecond level precision.
-
Initializes a new
Date
representing the instancemsSinceEpoch
milliseconds since the Unix epoch.Declaration
Swift
public init(msSinceEpoch: Int64)
-
The number of milliseconds after the Unix epoch that this
Date
occurs.Declaration
Swift
public var msSinceEpoch: Int64 { get }