IntX extension

on

Properties

days Duration

Available on int, provided by the IntX extension

no setter
hours Duration

Available on int, provided by the IntX extension

no setter
milliseconds Duration

Available on int, provided by the IntX extension

no setter
minutes Duration

Available on int, provided by the IntX extension

no setter
seconds Duration

Available on int, provided by the IntX extension

no setter

Methods

add(int other) int

Available on int, provided by the IntX extension

padLeft(int width, [String padding = '0']) String

Available on int, provided by the IntX extension

左补齐
padRight(int width, [String padding = '0']) String

Available on int, provided by the IntX extension

右补齐
repeat(Future<void> callback()) → void

Available on int, provided by the IntX extension

重复执行任务
subtract(int other) int

Available on int, provided by the IntX extension

toCh() String

Available on int, provided by the IntX extension

转汉字
toDateTime() DateTime

Available on int, provided by the IntX extension

时间戳转时间
toEn() String

Available on int, provided by the IntX extension

转英文
toFormattedString(String format) String

Available on int, provided by the IntX extension

时间转为格式化字符串