chrono_dart 2.0.2 copy "chrono_dart: ^2.0.2" to clipboard
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.

example/main.dart

import 'package:chrono_dart/chrono_dart.dart' show Chrono;

void main() {
  final dateOrNull = Chrono.parseDate('An appointment on Sep 12');
  print('Found date: $dateOrNull');

  final results = Chrono.parse('An appointment on Sep 12');
  print('Found dates: $results');
}
5
likes
150
points
186
downloads

Publisher

verified publisherg-30.dev

Weekly Downloads

A natural language date parser in Dart. Finds date references in user-generated text and returns objects containing DateTime and position in text.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

day

More

Packages that depend on chrono_dart