FLUTTER ECOSYSTEM

tejainece/date_format

日付のフォーマット

日付形式 のプロジェクト画像
Stars
87
Forks
75
最終プッシュ(UTC)
2025/01/16
プロジェクト状態
公開中
Ravi Teja Gudapati GitHub avatar
GITHUB User

Ravi Teja Gudapati ↗

Programming. Innovation. Football. Exercising.

言語Dart

このリポジトリが公開するパッケージ

使用している依存関係

依存関係一覧 1 件

元の README

以下は英語原文のスナップショットです。最新版は GitHub をご覧ください。

README を開く / 閉じる

date_format

A simple API to format dates.

Usage

Use formatDate function to format a DateTime object.

print(formatDate(DateTime(1989, 02, 21), [yyyy, '-', mm, '-', dd]));

Output:

1989-02-21

Long month names
print(formatDate(DateTime(1989, 2, 21), [yy, '-', M, '-', d]));

Output:

89-feb-21

Time parts
print(formatDate(
      DateTime(1989, 02, 1, 15, 40, 10), [HH, ':', nn, ':', ss]));

Output:

15:40:10

Timezone
print(formatDate(
      DateTime(1989, 02, 1, 15, 40, 10), [HH, ':', nn, ':', ss, z]));

Output:

15:40:10+0100