C# Class MovingScrewdriver.Web.Extensions.DateTimeOffsetExtensions

Show file Open project: Gutek/MovingScrewdriver

Public Methods

Method Description
AsMinutes ( this @this ) : DateTimeOffset
AtNoon ( this date ) : DateTimeOffset
AtTime ( this date, DateTimeOffset time ) : DateTimeOffset
ConvertFromJsTimestamp ( long timestamp ) : DateTimeOffset
ConvertFromUnixTimestamp ( long timestamp ) : DateTimeOffset
SkipToNextWorkDay ( this date ) : DateTimeOffset
ToLocalDate ( this @this ) : string
ToLocalDateTime ( this @this ) : string
ToZuluDateTime ( this @this ) : string

Method Details

AsMinutes() public static method

public static AsMinutes ( this @this ) : DateTimeOffset
@this this
return DateTimeOffset

AtNoon() public static method

public static AtNoon ( this date ) : DateTimeOffset
date this
return DateTimeOffset

AtTime() public static method

public static AtTime ( this date, DateTimeOffset time ) : DateTimeOffset
date this
time DateTimeOffset
return DateTimeOffset

ConvertFromJsTimestamp() public static method

public static ConvertFromJsTimestamp ( long timestamp ) : DateTimeOffset
timestamp long
return DateTimeOffset

ConvertFromUnixTimestamp() public static method

public static ConvertFromUnixTimestamp ( long timestamp ) : DateTimeOffset
timestamp long
return DateTimeOffset

SkipToNextWorkDay() public static method

public static SkipToNextWorkDay ( this date ) : DateTimeOffset
date this
return DateTimeOffset

ToLocalDate() public static method

public static ToLocalDate ( this @this ) : string
@this this
return string

ToLocalDateTime() public static method

public static ToLocalDateTime ( this @this ) : string
@this this
return string

ToZuluDateTime() public static method

public static ToZuluDateTime ( this @this ) : string
@this this
return string