search for: distance_in_minutes

Displaying 1 result from an estimated 1 matches for "distance_in_minutes".

2006 May 24
0
distance_of_time_in_german_words
...e if from_time.respond_to?(:to_time) to_time = to_time.to_time if to_time.respond_to?(:to_time) distance_in_seconds = ((to_time - from_time).abs).round german_words_for_distance_in_seconds(distance_in_seconds) end def german_words_for_distance_in_seconds(distance_in_seconds) distance_in_minutes = ((distance_in_seconds.abs)/60).round case distance_in_minutes when 0..1 return (distance_in_minutes==0) ? ''weniger als eine Minute'' : ''1 Minute'' unless include_seconds case distance_in_seconds when 0..5 then ''weni...