johnpryan/date_utils
DateTime 객체를 다루는 데 사용하는 Dart 유틸리티
- Stars
- 80
- Forks
- 53
- 최근 푸시(UTC)
- 2023. 12. 28.
- 프로젝트 상태
- 보관됨
언어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