Module: Jekyll::RoundToDay

Defined in:
jekyll/_plugins/round-to-day.rb

Instance Method Summary collapse

Instance Method Details

#round_to_day(seconds) ⇒ Object

given a gradawan student object, return their time in program as a float to .01 years



9
10
11
12
13
# File 'jekyll/_plugins/round-to-day.rb', line 9

def round_to_day(seconds) 

   return ((seconds.to_f / 86400).round * 86400.0)
    
end