C# Class AppVeyor.Common.Extensions.DateTimeExtensions

Show file Open project: onlyutkarsh/AppVeyorExtension

Public Methods

Method Description
Ceil ( this date, System.TimeSpan span ) : System.DateTime
Floor ( this date, System.TimeSpan span ) : System.DateTime
GetHumanizedRunningFromTime ( this startedTime ) : string
PrettyDate ( this timeSubmitted ) : string
Round ( this date, System.TimeSpan span ) : System.DateTime

Method Details

Ceil() public static method

public static Ceil ( this date, System.TimeSpan span ) : System.DateTime
date this
span System.TimeSpan
return System.DateTime

Floor() public static method

public static Floor ( this date, System.TimeSpan span ) : System.DateTime
date this
span System.TimeSpan
return System.DateTime

GetHumanizedRunningFromTime() public static method

public static GetHumanizedRunningFromTime ( this startedTime ) : string
startedTime this
return string

PrettyDate() public static method

public static PrettyDate ( this timeSubmitted ) : string
timeSubmitted this
return string

Round() public static method

public static Round ( this date, System.TimeSpan span ) : System.DateTime
date this
span System.TimeSpan
return System.DateTime