Version 1.1.40

Date 2022-04-30 (930 days ago)
Downloads 906 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

#installation">Installation

Install the NuGet package - either via the .NET CLI:

dotnet add package Skybrud.Essentials --version 1.1.40

or the NuGet package manager:

Install-Package Skybrud.Essentials -Version 1.1.40

#changelog">Changelog

  • Updated Iso8601Utils.ToString to include milliseconds (see #23 and ef6deac)
    In previous releases, the Iso8601Utils.ToString method and logic relying on this method, would return an ISO 8601 string representation of timestamps but, without including the milliseconds (as was using the yyyy-MM-ddTHH:mm:ssK format rather than yyyy-MM-ddTHH:mm:ss.fffK). With this release, the method now uses yyyy-MM-ddTHH:mm:ss.fffK for timestamps with an offset to UTC and yyyy-MM-ddTHH:mm:ss.fffZ for UTC based timestamps (using Z' for Zulu time instead of +00:00).

    All formats are valid according to the ISO 8601 specification, so this technically doesn't change the validity of the output string, but the change could be seen as a breaking change if one relies on the format being yyyy-MM-ddTHH:mm:ssK.

  • Added new Subtract(TimeSpan) method to the EssentialsTime class (see #24 and 878b381)
    Like the DateTimeOffset.Subtract methods allows subtracting a TimeSpan instance of a DateTimeOffset, the EssentialsTime.Subtract method now allows similar functionality.

  • EssentialsTime.Add... methods should keep time zone information (see #25 and 504e158)
    The various Add... methods now carry over the time zone (if specified) to the resulting EssentialsTime instance.

  • EssentialsTime.ToLocalTime and EssentialsTime.ToUniversalTime methods should set the time zone for the resulting EssentialsTime (see #25 and 6cff8d5)
    The time zone is now set to TimeZoneInfo.Local and TimeZoneInfo.Utc respectively for the resulting EssentialsTime instances returned by the two methods.

  • Introduced new RegexUtils.IsMatch method overloads (see #26 cad2474)
    The method overloads utilizes out parameters to make the methods easier to use in certain scenarios. See #26 for more information.