WorldClock/Scripts/WorldClock.cs
/// <summary>
/// Get a formatted hours and mintues string for a clock
/// </summary>
/// <returns>HH:MM</returns>
Get a formatted hours and mintues string for a clock
Get a formatted hours and mintues string for a clock
public virtual string GetFormattedMinutesAndHours()
    {
        string hours = (CurrentTime.Hours < 10) ? "0" + CurrentTime.Hours : CurrentTime.Hours.ToString();
        string minutes = (CurrentTime.Minutes < 10) ? "0" + CurrentTime.Minutes : CurrentTime.Minutes.ToString();
        return string.Concat(hours, ':', minutes);
    }
public virtual string GetFormattedMinutesAndHours ( ) { string hours = ( CurrentTime . Hours < 10 ) ? " " + CurrentTime . Hours : CurrentTime . Hours . ToString ( ) ; string minutes = ( CurrentTime . Minutes < 10 ) ? " " + CurrentTime . Minutes : CurrentTime . Minutes . ToString ( ) ; return string . Concat ( hours , ' ' , minutes ) ; }
Get a formatted hours and mintues string for a clock
Get a formatted hours and mintues string for a clock
None