denixport / datetimex

Dart extensions for DateTime and Duration

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Extension methods for DateTime and Duration

Build Status Pub GitHub

[TBD]

Available extensions:

  • Extension on num that enables durational suffixes: 1.hour, 1.minute etc. Math and comparison is out of the box: 1.hour == 0.5.hour + 0.5.hour

Requirements

  • Dart version >=2.6

Getting Started

Installation

  1. Add an entry in your pubspec.yaml for datetimex
dependencies:
  datetimex: ^1.0.0
  1. Run pub get (flutter packages get for Flutter)
  2. Import the extension you need
import 'package:datetimex/duration.dart'; // Durational suffixes

Release notes

See CHANGELOG

Features and Bugs

Please file bugs and feature requests at the issue tracker.

About

Dart extensions for DateTime and Duration

License:MIT License


Languages

Language:Dart 100.0%