Skip to content

v1.2.0-alpha005

Choose a tag to compare

@abjerner abjerner released this 27 Oct 21:02
· 3 commits to v1.2/main since this release

Installation

Install via NuGet - either via the .NET CLI:

dotnet add package Skybrud.Essentials --version 1.2.0-alpha005

or the NuGet Package Manager:

Install-Package Skybrud.Essentials -Version 1.2.0-alpha005

Changelog

  • Introduced new TimeUtils.UnixTimeSeconds and TimeUtils.UnixTimeMilliseconds formats (see 5d9b9ef)
    UNIX time may be specified in either seconds or milliseconds, which TimeUtils.UnixTime failed to represent. The existing TimeUtils.UnixTime has now been mamrked as obsolete, and TimeUtils.UnixTimeSeconds has been introduced to replace it. TimeUtils.UnixTimeMilliseconds has also been added to represent milliseconds.

  • Updated the StringUtils.TryParseBoolean methods to support the same truthy and falsy values (see fa9164f)
    One method supported yes, y, no and n while the other didn't. Now both do support these values.

  • Added support for working with DateOnly and TimeOnly (see 8bb039f)
    The EssentialsDate and EssentialsTime classes now have additional constructors and methods that support DateOnly and TimeOnly.