simple_moment 0.0.1 copy "simple_moment: ^0.0.1" to clipboard
simple_moment: ^0.0.1 copied to clipboard

outdatedDart 1 only

A simple implementation of the Moment.js features for relative time.

simple_moment #

A simple implementation of the Moment.js features for relative time in Dart.

Usage #

A simple usage example:

import 'package:simple_moment/simple_moment.dart';

main() {
    var secondsToAdd = new Duration(seconds: 10);
    var dateForComparison = new DateTime.now().add(secondsToAdd);
    var moment = new Moment.now();

    // should print "in a few seconds"
    print(moment.from(dateForComparison));
}

Features and bugs #

Please file feature requests and bugs at the issue tracker.

51
likes
0
pub points
93%
popularity

Publisher

unverified uploader

A simple implementation of the Moment.js features for relative time.

Homepage

License

unknown (LICENSE)

More

Packages that depend on simple_moment