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