DateFormats class
- @Author: chuxiong
- @Created at: 23-07-2025 16:56
- @Email:
- description 一些常用格式参照。如果下面格式不够,你可以自定义。
日期格式常量集,供 DateTimeUtils.formatDate 的
format参数使用。
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
- FULL → const String
-
yyyy-MM-dd HH:mm:ss(标准全格式)。 - H_M → const String
-
HH:mm(时分)。 - H_M_S → const String
-
HH:mm:ss(时分秒)。 - M_D → const String
-
MM-dd(月日)。 - M_D_H_M → const String
-
MM-dd HH:mm(月日时分)。 - PARAM_FULL → const String
-
yyyy/MM/dd HH:mm:ss(斜杠分隔全格式)。 - PARAM_M_D → const String
-
MM/dd(斜杠分隔月日)。 - PARAM_M_D_H_M → const String
-
MM/dd HH:mm(斜杠分隔月日时分)。 - PARAM_Y_M → const String
-
yyyy/MM(斜杠分隔年月)。 - PARAM_Y_M_D → const String
-
yyyy/MM/dd(斜杠分隔日期)。 - PARAM_Y_M_D_H_M → const String
-
yyyy/MM/dd HH:mm(斜杠分隔到分钟)。 - Y_M → const String
-
yyyy-MM(仅年月)。 - Y_M_D → const String
-
yyyy-MM-dd(仅日期)。 - Y_M_D_H_M → const String
-
yyyy-MM-dd HH:mm(到分钟)。 - ZH_FULL → const String
-
yyyy年MM月dd日 HH时mm分ss秒(中文全格式)。 - ZH_H_M → const String
-
HH时mm分(中文时分)。 - ZH_H_M_S → const String
-
HH时mm分ss秒(中文时分秒)。 - ZH_M_D → const String
-
MM月dd日(中文月日)。 - ZH_M_D_H_M → const String
-
MM月dd日 HH时mm分(中文月日时分)。 - ZH_Y_M → const String
-
yyyy年MM月(中文年月)。 - ZH_Y_M_D → const String
-
yyyy年MM月dd日(中文仅日期)。 - ZH_Y_M_D_H_M → const String
-
yyyy年MM月dd日 HH时mm分(中文到分钟)。