apankov / fuzzy-span

Replacement of Kohana's Date::fuzzy_span()

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Fuzzy Span replacement

This is very simple module that replaces standard Kohana's Date::fuzzy_span method. New implementation is just a port of distance_of_time_in_words() helper from Ruby on Rails.

Usage

Use this module if you are not completely satisfied by Kohana's way of generating fuzzy time distances. You can just add this module to Kohana::modules in your bootstrap.php, that's it.

Credits

About

Replacement of Kohana's Date::fuzzy_span()


Languages

Language:PHP 100.0%