// ParseTimeRangeOfDay parse a time-range-of-day with multiple layouts
ParseTimeRangeOfDay parse a time-range-of-day with multiple layouts
// ParseTimeRangeOfDay parse a time - range - of - day with multiple layouts
func ParseTimeRangeOfDay(s string) (begin time.Time, end time.Time) {
	times := strings.Split(s, "-")
	if len(times) > 0 {
		begin = ParseTimeOfDay(strings.TrimSpace(times[0]))
		if !begin.IsZero() {
			if len(times) > 1 {
				end = ParseTimeOfDay(strings.TrimSpace(times[1]))
			}
			if end.IsZero() {
				end = begin.Add(time.Minute)
			}
		}
	}
	return
}
func ParseTimeRangeOfDay ( s string ) ( begin time . Time , end time . Time ) { times := strings . Split ( s , " " ) if len ( times ) > 0 { begin = ParseTimeOfDay ( strings . TrimSpace ( times [ 0 ] ) ) if ! begin . IsZero ( ) { if len ( times ) > 1 { end = ParseTimeOfDay ( strings . TrimSpace ( times [ 1 ] ) ) } if end . IsZero ( ) { end = begin . Add ( time . Minute ) } } } return }
ParseTimeRangeOfDay parse a time-range-of-day with multiple layouts
ParseTimeRangeOfDay parse a time - range - of - day with multiple layouts