This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require "time" | |
module AverageTimeCalculator | |
SecondsPerDay = 86400 | |
Noon = 12 | |
#Calculates the average of the given times. | |
#Parameter times is supposed to be an array of strings, each string with format HH:MM(am|pm) | |
# | |
#*Examples*: |