mirror of
https://github.com/lollipopkit/flutter_server_box.git
synced 2025-12-17 23:34:24 +01:00
new: pve (#307)
This commit is contained in:
@@ -33,3 +33,8 @@ extension BigIntX on BigInt {
|
||||
|
||||
String get kb2Str => (this * BigInt.from(1024)).bytes2Str;
|
||||
}
|
||||
|
||||
extension IntX on int {
|
||||
Duration secondsToDuration() => Duration(seconds: this);
|
||||
DateTime get tsToDateTime => DateTime.fromMillisecondsSinceEpoch(this * 1000);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user