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

A structure to store a simple time.
Afficher le fichier Open project: Vanaheimr/Illias Class Usage Examples

Méthodes publiques

Méthode 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

Méthode Description
Time ( Byte Hour, Byte Minute, Byte Second = null ) : System

Create a simple time.

Method Details

FromHour() public static méthode

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

FromHourMin() public static méthode

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
Résultat Time

FromHourMinSec() public static méthode

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.
Résultat Time

GetHashCode() public méthode

Get the hashcode of this object.
public GetHashCode ( ) : Int32
Résultat System.Int32

Parse() public static méthode

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

ToString() public méthode

Get a string representation of this object.
public ToString ( ) : String
Résultat String

TryParse() public static méthode

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.
Résultat System.Boolean

operator() public static méthode

Operator <
public static operator ( ) : System.Boolean
Résultat System.Boolean

operator() public static méthode

Operator +
public static operator ( ) : System.TimeSpan
Résultat System.TimeSpan