FLUTTER ECOSYSTEM

johnpryan/date_utils

DateTime ऑब्जेक्ट्स के साथ काम करने के लिए Dart उपकरण

date_utils प्रोजेक्ट कवर
Stars
80
Forks
53
अंतिम पुश (UTC)
28 दिस॰ 2023
प्रोजेक्ट स्थिति
आर्काइव
John Ryan GitHub avatar
भाषाएँDart

उपयोग की गई निर्भरताएँ

निर्भरता सूची 2 आइटम
  • intl^0.17.0
  • testडेवलपमेंट^1.16.5

मूल README

यह अंग्रेज़ी मूल स्नैपशॉट है। नवीनतम सामग्री GitHub पर देखें।

README खोलें / बंद करें

date_utils

CI

A Dart library to manipulate DateTimes. Useful for creating calendar functionality.

Example

See Packages:

Tzolkin Web Calendar

flutter_calendar

Usage

  1. Add the following to your pubspec.yaml:
dev_dependencies:
    date_utils: ^0.2.0
  1. Run dart pub get

  2. Import the package in your Dart code

import 'package:date_utils/date_utils.dart';
  1. Use the Utils class.
// example
var date = new DateTime(2017, 3);
var lastDay = Utils.lastDayOfMonth(date);
print(lastDay.day);
// => 31