1.0.1

1.0.0

0.1.1

0.1.0

0.0.3

0.0.2

fixed a few bugs

better rounding

0.0.1

Initial version

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));
}

Use this package as a library

1. Depend on it

Add this to your package's pubspec.yaml file:

dependencies:
simple_moment: ^1.0.2

2. Install it

You can install packages from the command line:

with pub:

$ pub get

with Flutter:

$ flutter packages get

Alternatively, your editor might support pub get or flutter packages get.
Check the docs for your editor to learn more.