ms_datetime_extensions 0.2.0 copy "ms_datetime_extensions: ^0.2.0" to clipboard
ms_datetime_extensions: ^0.2.0 copied to clipboard

outdated

A simple and usefull lib to incremease DateTime with usefull functions

Overview Pub GitHub stars #

A simple lib to incremease DateTime with usefull functions

Whats Ms_DateTime_Extensions do #

Add usefull functions to DateTime:

  • nextWeekday return a new DateTime to a next weekday
  • fromInternet fetch a DateTime from internet
  • isAtSame[second,minute,hour,day,mount,year] return true when compare datetime to other
  • isAtToday return true if DateTime is today

Usage #

Just import lib and use extensions, call the functions to starts work:

import 'package:ms_datetime_extensions/ms_datetime_extensions.dart';

  var xmas = DateTime(2020, 12, 25, 15, 00); // Friday 25 december of 2020
  var nextFriday =
      xmas.nextWeekday(DateTime.friday); // Friday 01 january of 2021
  print(nextFriday);

  var mDateTimeFromInternet = await dateTimeFromInternet();

This lib use thirtpart API visite to know more worldtimeapi

6
likes
0
pub points
46%
popularity

Publisher

verified publishermarcussoftware.info

A simple and usefull lib to incremease DateTime with usefull functions

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

http

More

Packages that depend on ms_datetime_extensions