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