From 92cf312e5bf2ac08d40874716670b70a21d8879b Mon Sep 17 00:00:00 2001 From: mathru Date: Fri, 31 Mar 2023 10:10:49 +0900 Subject: [PATCH] fix: Add E to DateTime. --- .../lib/extension/date_time_extensions.dart | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/packages/katana/lib/extension/date_time_extensions.dart b/packages/katana/lib/extension/date_time_extensions.dart index bf3962bc5..159912763 100644 --- a/packages/katana/lib/extension/date_time_extensions.dart +++ b/packages/katana/lib/extension/date_time_extensions.dart @@ -188,6 +188,23 @@ extension DateTimeExtensions on DateTime { ); } + /// Parse from [DateTime] to [String] corresponding to an Intl DateFormat. + /// + /// Outputs a string representing the day of the week. + /// + /// [DateTime]からIntlのDateFormatに対応した[String]にパースします。 + /// + /// 曜日を表す文字列を出力します。 + /// + /// Please refer to the following page for details. + /// + /// 詳細は下記ページを参考にしてください。 + /// + /// https://api.flutter.dev/flutter/intl/DateFormat-class.html + String E() { + return format("E"); + } + /// Parse from [DateTime] to [String] corresponding to an Intl DateFormat. /// /// The output will be in the format `2022/12/21`.