time_span 2.0.2 copy "time_span: ^2.0.2" to clipboard
time_span: ^2.0.2 copied to clipboard

a dart library that calculates the time span in hours or minutes for two given time strings of format HH:MM.

Use this package as a library

Depend on it

Run this command:

With Dart:

 $ dart pub add time_span

With Flutter:

 $ flutter pub add time_span

This will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get):

dependencies:
  time_span: ^2.0.2

Alternatively, your editor might support dart pub get or flutter pub get. Check the docs for your editor to learn more.

Import it

Now in your Dart code, you can use:

import 'package:time_span/time_span.dart';
5
likes
130
pub points
67%
popularity

Publisher

unverified uploader

a dart library that calculates the time span in hours or minutes for two given time strings of format HH:MM.

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (LICENSE)

Dependencies

time_parser

More

Packages that depend on time_span