Skip to content

Commit

Permalink
added example for time_in_words helper
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Aug 28, 2014
1 parent 89b101f commit 45b9dd3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/Mojolicious/Plugin/DefaultHelpers.pm
Expand Up @@ -325,9 +325,12 @@ Alias for L<Mojolicious::Controller/"stash">.
%= time_in_words 784111777
Report the approximate distance in time from now with
Report the approximate distance of time from now with
L<Mojo::Date/"to_words">.
# "in 5 minutes"
$c->time_in_words(time + 300);
=head2 title
% title 'Welcome!';
Expand Down

0 comments on commit 45b9dd3

Please sign in to comment.