Skip to content

AtyaLibraries/Time

Repository files navigation

Time

Time is the repository for the Atya.Foundation.Time NuGet package.

Repository https://github.com/AtyaLibraries/Time
NuGet Atya.Foundation.Time
License MIT

This package provides UTC-safe abstractions for reading the current time and for validating UTC-only inputs in low-level APIs.

Included APIs

  • IClock
  • SystemClock
  • TimeGuard.AgainstNonUtc

Layout

.
|-- src/Time/
|-- tests/Time.UnitTests/
|-- samples/Time.Samples.Console/
|-- benchmarks/Time.Benchmarks/
`-- .github/

Build, Test, Pack

dotnet restore ./Time.sln
dotnet build ./Time.sln --configuration Release --no-restore
dotnet test ./tests/Time.UnitTests/Time.UnitTests.csproj --configuration Release --no-build
dotnet pack ./src/Time/Time.csproj --configuration Release --no-build

Artifacts land in artifacts/packages/.

About

UTC-safe time abstractions for foundation packages that need injectable clocks

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages