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.

example/simple_moment_example.dart

// Copyright (c) 2016, rinukkusu. All rights reserved. Use of this source code
// is governed by a BSD-style license that can be found in the LICENSE file.

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));
}
51
likes
0
points
951
downloads

Publisher

unverified uploader

Weekly Downloads

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

Homepage

License

unknown (license)

More

Packages that depend on simple_moment