johnpryan/date_utils
DateTime ऑब्जेक्ट्स के साथ काम करने के लिए Dart उपकरण
GitHub पर देखें ↗आर्काइव
- Stars
- 80
- Forks
- 53
- अंतिम पुश (UTC)
- 28 दिस॰ 2023
- प्रोजेक्ट स्थिति
- आर्काइव
भाषाएँDart
उपयोग की गई निर्भरताएँ
मूल README
यह अंग्रेज़ी मूल स्नैपशॉट है। नवीनतम सामग्री GitHub पर देखें।
README खोलें / बंद करें
date_utils
A Dart library to manipulate DateTimes. Useful for creating calendar functionality.
Example
See Packages:
Usage
- Add the following to your pubspec.yaml:
dev_dependencies:
date_utils: ^0.2.0
-
Run
dart pub get -
Import the package in your Dart code
import 'package:date_utils/date_utils.dart';
- Use the
Utilsclass.
// example
var date = new DateTime(2017, 3);
var lastDay = Utils.lastDayOfMonth(date);
print(lastDay.day);
// => 31