public TimePeriod(int hours, byte minutes) { TimeValidator.ValidateHours(hours); TimeValidator.ValidateMinutes(minutes); this.TimeInSeconds = TimeToSecondHelper.Get(hours, minutes); }
public Time(byte hours) { this.Hours = hours; TimeValidator.ValidateHours(this.Hours); this.TimeInSeconds = TimeToSecondHelper.Get(this.Hours, this.Minutes, this.Seconds); }
public TimePeriod(string timeString) { int hours = TimeFactory.GetHours(timeString); byte minutes = TimeFactory.GetMinutes(timeString); byte seconds = TimeFactory.GetSeconds(timeString); TimeValidator.ValidateHours(hours); TimeValidator.ValidateMinutes(minutes); TimeValidator.ValidateSeconds(seconds); this.TimeInSeconds = TimeToSecondHelper.Get(hours, minutes, seconds); }
public Time(string timeString) { this.Hours = (byte)TimeFactory.GetHours(timeString); this.Minutes = TimeFactory.GetMinutes(timeString); this.Seconds = TimeFactory.GetSeconds(timeString); TimeValidator.ValidateHours(this.Hours); TimeValidator.ValidateMinutes(this.Minutes); TimeValidator.ValidateSeconds(this.Seconds); this.TimeInSeconds = TimeToSecondHelper.Get(this.Hours, this.Minutes, this.Seconds); }
public TimePeriod(int hours) { TimeValidator.ValidateHours(hours); this.TimeInSeconds = TimeToSecondHelper.Get(hours); }