Skip to content

Latest commit

 

History

History
36 lines (23 loc) · 557 Bytes

README.md

File metadata and controls

36 lines (23 loc) · 557 Bytes

Rechron

Dart library for parsing relative date and time.

Installation

dart pub add rechron

Or, with flutter

flutter pub add rechron

Usage

import 'package:rechron/rechron' as rechron;

rechron.parse('a moment ago');
// 2022-08-20 19:18:49.761788

rechron.parse('2 hours ago');
// 2022-08-20 17:17:13.154895

rechron.parse('in 2 days, 5 hours');
// 2022-08-23 00:18:35.610707

License

This project is licensed under BSD-3-Clause.