Repository navigation
v1.2.0
Installation
Install via NuGet - either via the .NET CLI:
dotnet add package Skybrud.Essentials --version 1.2.0
or the NuGet Package Manager:
Install-Package Skybrud.Essentials -Version 1.2.0
Changelog
This release introduces new functionality, improves existing utilities, and incorporates features and improvements from the v1.1.x package.
Added
-
Added
TimeSpanSecondsConverterandTimeSpanMillisecondsConverterfor Newtonsoft.Json (3d99e44)- Ported from the
v1.1branch.
- Ported from the
-
Added explicit UNIX time formats (5d9b9ef)
- Introduced
TimeUtils.UnixTimeSecondsandTimeUtils.UnixTimeMillisecondsto distinguish between UNIX timestamps expressed in seconds and milliseconds. - Marked the existing
TimeUtils.UnixTimeas obsolete in favor ofTimeUtils.UnixTimeSeconds.
- Introduced
-
Added support for
DateOnlyandTimeOnly(8bb039f)- Extended
EssentialsDateandEssentialsTimewith additional constructors and methods supportingDateOnlyandTimeOnly.
- Extended
Improved
-
Improved geographic distance calculations (fa6a253)
- Updated
GetDistancemethods to use Vincenty's formula, with Haversine as a fallback. - Added
GetSphericalLawOfCosinesDistancemethods to preserve the previousGetDistanceimplementation. - Added
GetHaversineDistancemethods. - Added
GetVincentyDistanceandTryGetVincentyDistancemethods.
- Updated
-
Improved boolean string parsing consistency (fa9164f)
- Updated all
StringUtils.TryParseBooleanoverloads to consistently recognizeyes,y,no, andn.
- Updated all
Other Changes
- Ported miscellaneous functionality and improvements from
v1.1.x(6cd3789)- Incorporated additional logic and improvements from the
v1.1branch.
- Incorporated additional logic and improvements from the