Class BsonDateTime
Represents a BSON DateTime value.
[Serializable]
public class BsonDateTime : BsonValue, IComparable<BsonValue>, IConvertible, IEquatable<BsonValue>, IComparable<BsonDateTime>, IEquatable<BsonDateTime>
- Inheritance
-
Bson
Date Time
- Implements
- Inherited Members
- Extension Methods
Constructors
- Bson
Date Time(Date Time) Initializes a new instance of the BsonDateTime class.
- Bson
Date Time(long) Initializes a new instance of the BsonDateTime class.
Properties
- Bson
Type Gets the BsonType of this BsonValue.
- Is
Valid Date Time Gets whether this BsonDateTime is a valid .NET DateTime.
- Milliseconds
Since Epoch Gets the number of milliseconds since the Unix Epoch.
- Raw
Value Gets the number of milliseconds since the Unix Epoch.
- Value
Gets the DateTime value.
Methods
- Compare
To(Bson Date Time) Compares this BsonDateTime to another BsonDateTime.
- Compare
To(Bson Value) Compares the BsonDateTime to another BsonValue.
- Create(object)
Creates a new BsonDateTime.
- Equals(Bson
Date Time) Compares this BsonDateTime to another BsonDateTime.
- Equals(object)
Compares this BsonDateTime to another object.
- Get
Hash Code() Gets the hash code.
- IConvertible
Get Type Code Implementation() Implementation of the IConvertible GetTypeCode method.
- IConvertible
ToDate Time Implementation(IFormat Provider) Implementation of the IConvertible ToDateTime method.
- To
Local Time() Converts this BsonValue to a DateTime in local time.
- To
Nullable Local Time() Converts this BsonValue to a DateTime? in local time.
- To
Nullable Universal Time() Converts this BsonValue to a DateTime? in UTC.
- To
String() Returns a string representation of the value.
- To
Universal Time() Converts this BsonValue to a DateTime in UTC.
Operators
- operator ==(Bson
Date Time, Bson Date Time) Compares two BsonDateTime values.
- implicit operator Bson
Date Time(Date Time) Converts a DateTime to a BsonDateTime.
- operator !=(Bson
Date Time, Bson Date Time) Compares two BsonDateTime values.