teno_datetime 1.0.7 teno_datetime: ^1.0.7 copied to clipboard
Extensions for DateTime for a more convenient way of using it. Inspired by Jiffy and MonentJS but no introducing new data type.
Use this package as a library
Depend on it
Run this command:
With Dart:
$ dart pub add teno_datetime
With Flutter:
$ flutter pub add teno_datetime
This will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get
):
dependencies:
teno_datetime: ^1.0.7
Alternatively, your editor might support dart pub get
or flutter pub get
. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:teno_datetime/teno_datetime.dart';