C# Class Baseline.TimeSpanExtensions

显示文件 Open project: JasperFx/baseline

Public Methods

Method Description
Days ( this number ) : System.TimeSpan
GetTimeSpan ( string timeString ) : System.TimeSpan
Hours ( this number ) : System.TimeSpan
Milliseconds ( this number ) : System.TimeSpan
Minutes ( this number ) : System.TimeSpan
Seconds ( this number ) : System.TimeSpan
ToTime ( this minutes ) : System.TimeSpan

Values are 0 to 2359

Method Details

Days() public static method

public static Days ( this number ) : System.TimeSpan
number this
return System.TimeSpan

GetTimeSpan() public static method

public static GetTimeSpan ( string timeString ) : System.TimeSpan
timeString string
return System.TimeSpan

Hours() public static method

public static Hours ( this number ) : System.TimeSpan
number this
return System.TimeSpan

Milliseconds() public static method

public static Milliseconds ( this number ) : System.TimeSpan
number this
return System.TimeSpan

Minutes() public static method

public static Minutes ( this number ) : System.TimeSpan
number this
return System.TimeSpan

Seconds() public static method

public static Seconds ( this number ) : System.TimeSpan
number this
return System.TimeSpan

ToTime() public static method

Values are 0 to 2359
public static ToTime ( this minutes ) : System.TimeSpan
minutes this
return System.TimeSpan