Class DateTimeOffsetExtensions
Provides extension methods to convert DateTimeOffset object time ones with repsect to a given
ClaimsPrincipal instance.
Namespace: XploRe.Security.Claims
Assembly: XploRe.Security.dll
Syntax
public static class DateTimeOffsetExtensions : Object
Methods
| Name | Description |
|---|---|
| ToLocalDateTime(DateTimeOffset, ClaimsPrincipal) | Returns a new DateTime instance based on the current DateTimeOffset instance that represents the local time for a given ClaimsPrincipal's time zone. |
| ToLocalDateTime(Nullable<DateTimeOffset>, ClaimsPrincipal) | Returns a new System.Nullable<> instance based on the current System.Nullable<> instance that represents the local time for a given ClaimsPrincipal's time zone. |
| ToLocalTime(DateTimeOffset, ClaimsPrincipal) | Returns a new DateTimeOffset instance based on the current DateTimeOffset instance that represents the local time for a given ClaimsPrincipal's time zone. |
| ToLocalTime(Nullable<DateTimeOffset>, ClaimsPrincipal) | Returns a new System.Nullable<> instance based on the current System.Nullable<> instance that represents the local time for a given ClaimsPrincipal's time zone. |