v1.1.40
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
-
Updated
Iso8601Utils.ToString
to include milliseconds (see #23 and ef6deac)
In previous releases, theIso8601Utils.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 theyyyy-MM-ddTHH:mm:ssK
format rather thanyyyy-MM-ddTHH:mm:ss.fffK
). With this release, the method now usesyyyy-MM-ddTHH:mm:ss.fffK
for timestamps with an offset to UTC andyyyy-MM-ddTHH:mm:ss.fffZ
for UTC based timestamps (usingZ'
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 theEssentialsTime
class (see #24 and 878b381)
Like theDateTimeOffset.Subtract
methods allows subtracting aTimeSpan
instance of aDateTimeOffset
, theEssentialsTime.Subtract
method now allows similar functionality. -
EssentialsTime.Add...
methods should keep time zone information (see #25 and 504e158)
The variousAdd...
methods now carry over the time zone (if specified) to the resultingEssentialsTime
instance. -
EssentialsTime.ToLocalTime
andEssentialsTime.ToUniversalTime
methods should set the time zone for the resultingEssentialsTime
(see #25 and 6cff8d5)
The time zone is now set toTimeZoneInfo.Local
andTimeZoneInfo.Utc
respectively for the resultingEssentialsTime
instances returned by the two methods. -
Introduced new
RegexUtils.IsMatch
method overloads (see #26 cad2474)
The method overloads utilizesout
parameters to make the methods easier to use in certain scenarios. See #26 for more information.