m-haisham / rechron

Dart library for parsing relative date and time.

Home Page:https://pub.dev/packages/rechron

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

About

Dart library for parsing relative date and time.

https://pub.dev/packages/rechron

License:BSD 3-Clause "New" or "Revised" License


Languages

Language:Dart 100.0%