C# Class Panta.DataModels.Extensions.UT.UTCourseSectionTimeSpan

Mostrar archivo Open project: renmengye/CoursePlanner Class Usage Examples

Public Methods

Method Description
TryParseRawTimeSpan ( string rawSpan, CourseSectionTimeSpan &span ) : bool

Parse the time format on UT artsci to CourseTimeSpan format

TryParseTimeSpanInt ( string rawTime, byte &result ) : bool

Convert a raw time string to a standard integer accepted by CourseTimeSpan constructor

Private Methods

Method Description
To24HourTime ( byte time, bool fixAfternoon = false ) : byte

Convert a 12-hour time to 24-hour time

UTCourseSectionTimeSpan ( ) : System

Method Details

TryParseRawTimeSpan() public static method

Parse the time format on UT artsci to CourseTimeSpan format
public static TryParseRawTimeSpan ( string rawSpan, CourseSectionTimeSpan &span ) : bool
rawSpan string e.g. "M2-4"
span CourseSectionTimeSpan
return bool

TryParseTimeSpanInt() public static method

Convert a raw time string to a standard integer accepted by CourseTimeSpan constructor
public static TryParseTimeSpanInt ( string rawTime, byte &result ) : bool
rawTime string Raw time string in the form 11:30 or 11
result byte
return bool