Show / Hide Table of Contents

    Class DateTimeOffsetExtensions

    Provides extension methods to convert DateTimeOffset object time ones with repsect to a given ClaimsPrincipal instance.
    Inheritance
    Object
    DateTimeOffsetExtensions
    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.
    Back to top Copyright © 2017-2018, xplo.re IT Services, Michael Maier. All rights reserved.