in_date_utils 0.1.1 copy "in_date_utils: ^0.1.1" to clipboard
in_date_utils: ^0.1.1 copied to clipboard

outdated

Utils for DateTime. Easily modify, check and copy dates. Get numbers of days in year/month. And mony more.

in_date_utils #

pub package Tests

Another utils for DateTime.

Usage #

To use this plugin, add in_date_utils as a dependency in your pubspec.yaml file.

Than add import 'package:in_date_utils/in_date_utils.dart'; to the file for use extension methods.

Example #

import 'package:list_ext/list_ext.dart';

void main() {
  final now = DateTime.now();
  
  print(now);
  // 2020-10-22 18:18:27.125878

  print(DateUtils.startOfDay(now));
  // 2020-10-22 00:00:00.000
  
  print(DateUtils.isFirstDayOfWeek(now));
  // false
  
  print(DateUtils.lastDayOfMonth(now));
  // 2020-10-31 00:00:00.000
  
  print(DateUtils.getDaysInYear(2020));
  // 366
  
  print(DateUtils.getWeeksInYear(2020));
  // 53
}
21
likes
0
pub points
90%
popularity

Publisher

verified publisherinnim.ru

Utils for DateTime. Easily modify, check and copy dates. Get numbers of days in year/month. And mony more.

Homepage
Repository (GitHub)
View/report issues

License

unknown (LICENSE)

More

Packages that depend on in_date_utils