C# Class org.GraphDefined.Vanaheimr.Illias.Time

A structure to store a simple time.
Mostrar archivo Open project: Vanaheimr/Illias Class Usage Examples

Public Methods

Method Description
FromHour ( Byte Hour ) : Time

Create a new time based on the given hour.

FromHourMin ( Byte Hour, Byte Minute ) : Time

Create a new time based on the given hour and minute.

FromHourMinSec ( Byte Hour, Byte Minute, Byte Second ) : Time

Create a new time based on the given hour and minute.

GetHashCode ( ) : Int32

Get the hashcode of this object.

Parse ( String Text ) : Time

Parse the given text as time.

ToString ( ) : String

Get a string representation of this object.

TryParse ( String Text, Time &Time ) : System.Boolean

Try to parse the given text as time.

operator ( ) : System.Boolean

Operator <

operator ( ) : System.TimeSpan

Operator +

Private Methods

Method Description
Time ( Byte Hour, Byte Minute, Byte Second = null ) : System

Create a simple time.

Method Details

FromHour() public static method

Create a new time based on the given hour.
public static FromHour ( Byte Hour ) : Time
Hour Byte The hour.
return Time

FromHourMin() public static method

Create a new time based on the given hour and minute.
public static FromHourMin ( Byte Hour, Byte Minute ) : Time
Hour Byte The hour.
Minute Byte The minute
return Time

FromHourMinSec() public static method

Create a new time based on the given hour and minute.
public static FromHourMinSec ( Byte Hour, Byte Minute, Byte Second ) : Time
Hour Byte The hour.
Minute Byte The minute
Second Byte The second.
return Time

GetHashCode() public method

Get the hashcode of this object.
public GetHashCode ( ) : Int32
return System.Int32

Parse() public static method

Parse the given text as time.
public static Parse ( String Text ) : Time
Text String A text representation of the time.
return Time

ToString() public method

Get a string representation of this object.
public ToString ( ) : String
return String

TryParse() public static method

Try to parse the given text as time.
public static TryParse ( String Text, Time &Time ) : System.Boolean
Text String A text representation of the time.
Time Time The parsed time.
return System.Boolean

operator() public static method

Operator <
public static operator ( ) : System.Boolean
return System.Boolean

operator() public static method

Operator +
public static operator ( ) : System.TimeSpan
return System.TimeSpan