chrono_dart 2.0.2 chrono_dart: ^2.0.2 copied to clipboard
A natural language date parser in Dart. Finds date references in user-generated text and returns objects containing DateTime and position in text.
Use this package as a library
Depend on it
Run this command:
With Dart:
$ dart pub add chrono_dart
With Flutter:
$ flutter pub add chrono_dart
This will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get
):
dependencies:
chrono_dart: ^2.0.2
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:chrono_dart/chrono_dart.dart';