SchemaDate

Class serializing to a bson date containing a special now value that gets translated to the current time when converting to bson.

Constructors

this
this(BsonDate date)
this
this(long time)

Members

Functions

toBsonDate
BsonDate toBsonDate()

Converts this SchemaDate to a vibed BsonDate object.

toISOExtString
string toISOExtString()
toSysTime
SysTime toSysTime()

Converts this SchemaDate to a std.datetime.SysTime object.

Properties

time
auto time [@property getter]

Static functions

fromBson
SchemaDate fromBson(Bson bson)
fromISOExtString
SchemaDate fromISOExtString(S s)
fromSysTime
SchemaDate fromSysTime(SysTime stime)
now
SchemaDate now()

Magic value setting the date to the current time stamp when serializing.

toBson
Bson toBson(SchemaDate date)

Meta