Date | 2021-02-09 (1,375 days ago) |
---|---|
Downloads | 37K 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#changelog
">ChangelogAdded support for Swatch Internet Time (see 32c1483
, aeccd83
, e3a177d
, 00820d3
)
While holding little use today, Swatch Internet Time is an alternative way to describe the time of day using beats - a whole day being 1000 beats. A single beat equals 86.4 seconds.
Introduced new Iso8601Utils
and Iso8601Constants
classes (b018ee6
, 9dee41d
)
The new classes separate ISO 8601 related logic into it's own namespace and classes, hopefully making the classes easier to understand. Similar ISO 8601 related methods in the TimeUtils
class have now been marked as obsolete.
Introduced new Rfc822Utils
class (see 9dee41d
)
The new class separates a lot of the RFC 822 related logic into it's own class. The methods in the TimeUtils
class still exist, but are now marked as obsolete in favor of the methods in the new class.
Introduced new Rfc2822Utils
class (see 9dee41d
)
The new class separates a lot of the RFC 2822 related logic into it's own class. The methods in the TimeUtils
class still exist, but are now marked as obsolete in favor of the methods in the new class.
Introduced new UnixTimeUtils
class (see 83af7a4
)
The new class separates a lot of the Unix time related logic into it's own class. The methods in the TimeUtils
class still exist, but are now marked as obsolete in favor of the methods in the new class.
Introduced new EssentialsPeriod
class (see 3267181
, a29d1b4
)
The new class describes a period of time, identified by two instances of EssentialsTime
for the start date and end date respectively.
Introduced static FromTicks
methods in the EssentialsTime
class (see c172e85
)
The EssentialsTime
class now support creating a new instance from a specified amount of ticks - similar to the FromTicks
methods in DateTime
and DateTimeOffset
classes.
The EssentialsDateTime
class is now marked as obsolete (see 9dee41d
)
The class has been around in this package for quite some time, but was superseded by the EssentialsTime
class a while back, as the latter wraps an instance of DateTimeOffset
instead of DateTime
.
It's still possible to use the EssentialsDateTime
, but it's recommended to use the EssentialsTime
class instead.
Introduced EssentialsMonth
class (see 15351ca
)
Inheriting from the EssentialsPeriod
class, EssentialsMonth
can be used to represent a specific month, and provides some additional month-specific properties compared to the properties found in the base class.
Introduced EssentialsYear
class (see db3cd86
)
Inheriting from the EssentialsPeriod
class, EssentialsYear
can be used to represent a specific year, and provides some additional year-specific properties compared to the properties found in the base class.
EssentialsTime
operator overloads from Unix timestamp should be avoided (see b06f9ab
)
The operators seem to lead to more confusion than they do good, so they have now been marked as obsolete, and will be removed in a future release.
Introduced new JObjectExtensions.GetGuidArray
extension method (see 0a4c5c9
)
The new extension method allows getting an array of Guid
's from a JObject
property. The method works similar to the other extension methods in the same class, but contains a bit more error handling.