Iso8601Utils.GetYear method
Version 1.1.28
.NET Framework 4.8
Namespace | Skybrud.Essentials.Time.Iso8601 |
---|---|
Assembly | Skybrud.Essentials.dll |
GetYear(DateTime)
Static
Returns the ISO 8601 week-numbering year of the specified timestamp
.
public static int GetYear(DateTime timestamp)
Parameters
timestamp
DateTime
The timestamp.
GetYear(DateTimeOffset)
Static
Returns the ISO 8601 week-numbering year of the specified timestamp
.
public static int GetYear(DateTimeOffset timestamp)
Parameters
timestamp
DateTimeOffset
The timestamp.