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.

example/time_span_example.dart

import 'package:time_span/time_span.dart';

void main() {
  var timeSpan = TimeSpan('09:00', '21:00');
  print('Time span in hours: ${timeSpan.inHours}'); // 12
  print('Time span in inMinutes: ${timeSpan.inMinutes}'); // 720
}
5
likes
130
pub points
69%
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