Skip to content

Commit

Permalink
fix: Add E to DateTime.
Browse files Browse the repository at this point in the history
  • Loading branch information
mathrunet committed Mar 31, 2023
1 parent bbc3352 commit 92cf312
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions packages/katana/lib/extension/date_time_extensions.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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`.
Expand Down

0 comments on commit 92cf312

Please sign in to comment.