So: #t in hh:mm:ss format
def HourDisp(t) #t gets split in three parts hh,mm, and ss
new_t = t.split(’:’)
h=new_t[0] + new_t[1]/60 + new_t[2]/3600
return h
end
Thank You so much for your time. It’s probably not my place to say
that this stuff is probably elementary. This is why: Thank you so much
for your time!!
Cheers!
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.