Méthode | Description | |
---|---|---|
Advance ( System.TimeSpan timeSpan ) : void |
Advances the clock by the given time span.
|
|
Advance ( long ticks ) : void |
Advances the clock by the given number of ticks.
|
|
AdvanceTo ( System.DateTime dateTime ) : void |
Advances the clock to the given time.
|
|
FakeClock ( ) : System |
Creates an instance with an initial time of 2000-01-01T00:00:00Z.
|
|
FakeClock ( System.DateTime dateTime ) : System |
Creates an instance with the specified initial time, which must have a kind of Utc or Unspecified (the latter being for convenience).
|
|
FakeClock ( long ticks ) : System |
Creates an instance with the specified number of ticks since 0001-01-1T00:00:00Z as the initial time, for convenience when testing code with numeric values.
|
|
GetCurrentDateTimeUtc ( ) : System.DateTime |
Returns the current date and time in UTC, with a kind of DateTimeKind.Utc.
|
public Advance ( System.TimeSpan timeSpan ) : void | ||
timeSpan | System.TimeSpan | Time span to advance the clock by. |
Résultat | void |
public Advance ( long ticks ) : void | ||
ticks | long | Ticks to advance the clock by. |
Résultat | void |
public AdvanceTo ( System.DateTime dateTime ) : void | ||
dateTime | System.DateTime | The time to advance to. |
Résultat | void |
public FakeClock ( System.DateTime dateTime ) : System | ||
dateTime | System.DateTime | The initial time for the clock. |
Résultat | System |
public GetCurrentDateTimeUtc ( ) : System.DateTime | ||
Résultat | System.DateTime |