year_time_left 0.0.1
year_time_left: ^0.0.1 copied to clipboard
A simple Dart package to get the remaining time until the end of the year.
example/year_time_left_example.dart
import 'package:year_time_left/year_time_left.dart';
void main() {
final ytl = YearTimeLeft();
print('Days left: ${ytl.days}');
print('Hours left: ${ytl.hours}');
print('Minutes left: ${ytl.minutes}');
print('Seconds left: ${ytl.seconds}');
print('Milliseconds left: ${ytl.milliseconds}');
print('Microseconds left: ${ytl.microseconds}');
print('Approx months left: ${ytl.months}');
print('\nFull map: ${ytl.all()}');
}