YmDateUtil class
日期时间工具类
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
Static Methods
-
currentDateString(
) → String - 当前日期字符串 2021-06-20
-
currentDateTime(
) → DateTime - 当前日期时间DateTime
-
currentDateTimeString(
) → String - 当前日期时间字符串 2021-06-20 15:32:41
-
currentMilliseconds(
) → int - 当前日期时间毫秒数
-
format2Number(
String value) → String - 长度少于两位补0
-
formatDateTime(
String value) → DateTime - 字符串转换DateTime 2019-06-20 15:32:41
-
formatString(
DateTime dateTime) → String - DateTime转换字符串 2019-06-20 15:32:41
-
fromMilliseconds(
int milliseconds) → DateTime - 日期时间毫秒数转DateTime
-
getDateCount(
int year, int month) → int - 计算月份所对应天数