Home TimeStamp Struct
Post
Cancel

TimeStamp Struct

Definition

Namespace: EntityDb.Abstractions.ValueObjects
Assembly: EntityDb.Abstractions

Represents a relevant moment in time.

1
public readonly struct TimeStamp : System.IEquatable<TimeStamp>

Inheritance: Object → ValueType

Fields

UnixEpoch The value of this constant is equivalent to 00:00:00.0000000 UTC, January 1, 1970.

Constructors

TimeStamp(DateTime) Represents a relevant moment in time.

Properties

ValueThe backing value.
UtcNow Gets a TimeStamp that represents the current date and time on this computer, expressed in UTC.

Methods

WithMillisecondPrecision() Gets a TimeStamp rounded down to the nearest millisecond.
WithMicrosecondPrecision() Gets a TimeStamp rounded down to the nearest microsecond.
ToString() Converts the value of the current TimeStamp object to its equivalent string representation using the formatting conventions of the current culture.
This post is licensed under CC BY 4.0 by the author.