Iso8601Utils Class

Version 1.1.28
.NET Framework 4.8
Namespace Skybrud.Essentials.Time.Iso8601
Assembly Skybrud.Essentials.dll
Visibility Public
Inheritance Object

Static class with various utility methods for working with the ISO 8601 standard.

public class Iso8601Utils { }

Methods

Returns an instance of DateTimeOffset representing the start of the specified ISO 8601year and week.

Returns an instance of DateTimeOffset representing the start of the specified ISO 8601year and week.

Returns an instance of DateTimeOffset representing the start of the specified ISO 8601year and week.

Gets the week number of date according to the ISO 8601 specification.

Gets the week number of date according to the ISO 8601 specification.

Returns the amount of weeks in the specified ISO 8601year.

Returns the ISO 8601 week-numbering year of the specified timestamp.

Returns the ISO 8601 week-numbering year of the specified timestamp.

Parse(string) (static)

Converts the specified iso8601 date to an instance of DateTimeOffset .

Converts the specified timestamp to a string representation as specified by the ISO 8601 format.

Converts the specified timestamp to a string representation as specified by the ISO 8601 format.

Converts the specified iso8601 formatted date and time to its DateTime equivalent and returns a value that indicates whether the conversion succeeded.

Converts the specified iso8601 formatted date and time to its DateTimeOffset equivalent and returns a value that indicates whether the conversion succeeded.