| Date | 2026-08-28 (8 days ago) |
|---|---|
| Downloads | 120 downloads |
| NuGet | View on NuGet |
| GitHub | View on GitHub |
| Target Frameworks | .NET Standard 1.1 .NET Standard 1.3 .NET Standard 2.0 .NET 4.5 .NET 4.6 .NET 4.7 .NET 4.8 .NET 5 .NET 6 .NET 7 .NET 8 .NET 10 |
Install via NuGet - either via the .NET CLI:
dotnet add package Skybrud.Essentials --version 1.1.69or the NuGet Package Manager:
Install-Package Skybrud.Essentials -Version 1.1.69Added TimeSpanSecondsConverter and TimeSpanMillisecondsConverter converters for Newtonsoft.Json (see )
The v1.1.x version of this package already has a TimeSpanSecondsConverter class, but this is obsolete as it lives in the wrong namespace. The TimeSpanConverter class may be used instead, but introducing TimeSpanSecondsConverter (and TimeSpanMillisecondsConverter) in the correct namespace makes usage a bit easier.
Improved logic for parsing time spans and durations (see 8f46a22)
TimeUtils.ParseTimeSpan methods (also supports ISO 8601 durations, which TimeSpan.Parse doesn't)XmlSchemaUtils.TryParseDuration method overload (nullable result)Improved the logic for parsing IConfiguration values (see 82ecb6c, 8bcc480 and b965f35)
GetEnum, GetRequiredEnum and TryGetEnum extension methodsGetTimeSpan, GetRequiredTimeSpan and TryGetTimeSpan extension methodsConfigurationException, InvalidConfigurationException and MissingConfigurationException exception classesAdded misc async methods to the JsonUtils class (see a311588)
LoadJsonArrayAsync, LoadJsonObjectAsync and LoadJsonTokenAsync extension methodsAdded additional parse methods to the EssentialsTime class (see b9e1818)
ParseIso8601 method (replaces FromIso8601)ParseRfc822 method (replaces FromRfc822)ParseRfc2822 method (replaces FromRfc2822)ParseExact methodsTryParseExact methodsAdded misc non-generic collection initializers (see 8c1c1db)
ReadOnlyCollection.Empty(type), ReadOnlyList.Empty(type) and ReadOnlySet.Empty(type) methods for when using generics in methods calls isn't possibleAdded new GlobalizationUtils class (see 208492b)
For now, the class provides static methods for easily converting back and forth between UTF-8 and Punycode.