time_span 1.0.3
time_span: ^1.0.3

Dart native js
Flutter Android iOS web

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

A Dart library that parses two time strings of format HH:MM and calculates the time span in minutes as int or hours as double.

Usage #

A simple usage example:

import 'package:time_span/time_span.dart';

void main() {
  var timeSpan = TimeSpan('09:00', '21:30');
  print('Time span in hours: ${timeSpan.inHours}'); // 12.5
  print('Time span in inMinutes: ${timeSpan.inMinutes}'); // 750
}

Features and bugs #

Please file feature requests and bugs at the issue tracker.

1
likes
90
pub points
78%
popularity

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

Uploader

dartpackagedev@gmail.com

License

BSD (LICENSE)

Dependencies

time_parser

More

Packages that depend on time_span