Global instance for NodaTime IClock
to help with testing.
Defaults to SystemClock.Instance
.
Using a global mutable singleton is considered an anti pattern and bad practice. You should instead be injecting an IClock
instance whenever possible.
- Icon made by srip from www.flaticon.com