FLUTTER ECOSYSTEM

johnpryan/date_utils

DateTime 객체를 다루는 데 사용하는 Dart 유틸리티

date_utils 프로젝트 이미지
Stars
80
Forks
53
최근 푸시(UTC)
2023. 12. 28.
프로젝트 상태
보관됨
John Ryan GitHub avatar
GITHUB User

John Ryan ↗

@googlePortland, OR공식 웹사이트 ↗
언어Dart

사용 중인 의존성

의존성 목록 2 개

원본 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