34 packages tagged with “datetimeoffset”
An injectable, mockable source of the current date and time.
Provides conversion of DateTime and DateTimeOffset into an epoch-relative number value (total seconds). See Unix Epoch in Wikipedia for more information on why this might be needed. Typical uses include using this simplified representation as an expiration time for a token, password or verification code.
Provides a testable abstraction and alternative to DateTime.Now / DateTime.UtcNow
Provides helpful Custom User Types, Composite User Types, Mapper Helpers and Linq Extensions for NHibernate. - NHibernate Composite User Type for the DateTimeOffset struct: Allows database such as SQLite that do not natively support the DateTimeOffset data type to store it in two separate columns one for the date and time and another for the offset. - Model Mapper static helper class: Allows easy configuration of a mapper to apply the above DateTimeOffset Composite User Type to all properties that are of type DateTimeOffset. Allows a mapper to be set to ignore abstract classes. - Linq extension that allows the use of object.IsNotNull() extension method to be mapped the native database is not null check when testing for child nullable entities.
Simplified logging, enabled/disabled during runtime. Inspections. Domain objects. Shipping models. Fast thread-safe cache. Cryptographic salted hashes. Enumeration type converter. Validator extensions. Sample data randomizers.
DateTimeAbstractions is an testable alternative to the static methods on DateTime and DateTimeOffset. Includes an analyzer/codefix finding usages of DateTime to replaces it with out testable alternative.
A simple library for abstracting static properties such as 'Now', 'UtcNow' and 'Today' in .NET's 'System.DateTime' and 'System.DateTimeOffset' structs so that methods using these can be unit tested
A collection of helpful DateTimeOffset extension methods
C# extension methods for BCL types (String, Type, etc.)
A small source generator that outputs a class, `BuildTimestamp`, that contains several variables that describe when the source generator was run (and thus when your project was built.)
xUnit Tests for netfx-System.DateTimeEpochExtensions
C# Local/UTC Time Provider
A collection of all of the helpful DateTimeOffset extension methods
The only timer you need.
A simple utility class which enables mocking of DateTimeOffset
Description here
Library for parsing DateTime and DateTimeOffset strings from various database systems and standard formats while preserving microsecond precision and timezone offsets.
A collection of helpful DateTimeOffset quarter extension methods
A collection of helpful DateTimeOffset day extension methods
A collection of helpful DateTimeOffset DayOfWeek extension methods
An easily testable clock.
Helpful extension methods surrounding DateTimeOffsets relating to years
A collection of helpful DateTimeOffset hour extension methods
Deconstructors for DateTime and etc.
A collection of helpful DateTimeOffset month extension methods
A collection of helpful DateTimeOffset week extension methods
Helpful utility methods surrounding DateTimeOffsets
A set of useful converters for JSON.NET.
A custom attribute for System.Text.Json that allows you to specify custom date formats for DateTime, DateTimeOffset, and their nullable counterparts during JSON serialization and deserialization.