year_time_left 0.0.1 copy "year_time_left: ^0.0.1" to clipboard
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()}');
}
0
likes
140
points
11
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

A simple Dart package to get the remaining time until the end of the year.

License

MIT (license)

More

Packages that depend on year_time_left