Skip to content

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

License

Notifications You must be signed in to change notification settings

AndreeWille/time-span

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

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

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages