Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
mattiasnordqvist committed Sep 22, 2024
1 parent 5dc7a9a commit 9c02dab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion TimeKeeping/ReadMe.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

`SystemTime.Now()` is a drop-in replacement for `DateTimeOffset.UtcNow` with a couple of extra features.

To begin with, you can manipulate time using SystemTime.
You can manipulate time using SystemTime.
This is useful for testing, where you want to test how your code behave at different times, or where you want the code to be deterministic.
`SystemTime` works through `AsyncLocal`, so you do not have to inject a `ITimeProvider` wherever you need to be able to mock time.

Expand Down

0 comments on commit 9c02dab

Please sign in to comment.