michal-ciechan / NodaTime.Global

Global instance for NodaTime IClock

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

NodaTime.Global

Global instance for NodaTime IClock to help with testing.

Defaults to SystemClock.Instance.

Important

Using a global mutable singleton is considered an anti pattern and bad practice. You should instead be injecting an IClock instance whenever possible.

Attribution

About

Global instance for NodaTime IClock

License:MIT License


Languages

Language:C# 100.0%