angular-humanSeconds

AngularJS filter for converting a number of seconds to a human readable time
Homepage:
1 person uses it
Author: Dcf1681ef9047731070a61e205b2d1c0?d=https%3a%2f%2fidenticons.github.com%2ff58dd1ce0b745cd8f6602864059a7198 tsaikd

angular-humanSeconds GitHub version

Dependency Status devDependency Status Build Status Built with Grunt

AngularJS filter for converting a number of seconds to a human readable time

support i18N with angular-translate package

fork from https://github.com/wildlyinaccurate/angular-readable-time

Usage

Include angular-translate.min.js and angular-humanSeconds.min.js in your application.

Add the pascalprecht.translate and humanSeconds module to your application's dependencies.

Use the filter by passing it a number of seconds.

The above example will look something like this:

1 minute

2 weeks

If use zh-tw locale

1 分

2 週

If you use this module you can give it a thumbs up at http://ngmodules.org/modules/angular-humanSeconds.

comments powered by Disqus
This page was last updated about 3 years ago.