Sha256: 0ecfe172e38bd0568134d2d8afa3bc421ffa06e1ae17399e101230ed3efcafc2

Contents?: true

Size: 1.24 KB

Versions: 6

Compression:

Stored size: 1.24 KB

Contents

<h2>test for distance_of_time_in_words</h2>
<% from = Time.mktime(2004, 3, 6, 21, 45, 0) %>
 <%= distance_of_time_in_words(from, from + 0.seconds, true) %><br/>
 <%= distance_of_time_in_words(from, from + 5.seconds, true) %><br/>
 <%= distance_of_time_in_words(from, from + 20.seconds, true) %><br/>
 <%= distance_of_time_in_words(from, from + 40.seconds, true) %><br/>
 <%= distance_of_time_in_words(from, from + 60.seconds, true) %><br/>
 <%= distance_of_time_in_words(from, from + 1.minutes + 30.seconds) %><br/>
 <%= distance_of_time_in_words(from, from + 44.minutes + 30.seconds) %><br/>
 <%= distance_of_time_in_words(from, from + 89.minutes + 30.seconds) %><br/>
 <%= distance_of_time_in_words(from, from + 23.hours + 59.minutes + 30.seconds) %><br/>
 <%= distance_of_time_in_words(from, from + 47.hours + 59.minutes + 30.seconds) %><br/>
 <%= distance_of_time_in_words(from, from + 29.days + 23.hours + 59.minutes + 30.seconds) %><br/>
 <%= distance_of_time_in_words(from, from + 59.days + 23.hours + 59.minutes + 30.seconds) %><br/>
 <%= distance_of_time_in_words(from, from + 1.years - 30.seconds) %><br/>
 <%= distance_of_time_in_words(from, from + 2.years - 30.seconds) %><br/>
 <%= distance_of_time_in_words(from, from + 4.years - 30.seconds) %><br/>

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
gettext_rails-2.1.0 test/app/views/users/distance_of_time_in_words.html.erb
gettext_rails-2.0.2 test/app/views/users/distance_of_time_in_words.html.erb
gettext_rails-2.0.0 test/app/views/users/distance_of_time_in_words.html.erb
gettext_rails-2.0.1 test/app/views/users/distance_of_time_in_words.html.erb
gettext_rails-2.0.3 test/app/views/users/distance_of_time_in_words.html.erb
gettext_rails-2.0.4 test/app/views/users/distance_of_time_in_words.html.erb