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

outdated

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
pub points
92%
popularity

Publisher

unverified uploader

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

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

More

Packages that depend on simple_moment