mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-18 08:06:21 +08:00
@@ -21,11 +21,7 @@ class DurationUtil {
|
||||
if (data == null || data.isEmpty) {
|
||||
return 0;
|
||||
}
|
||||
List<int> split = data
|
||||
.split(':')
|
||||
.reversed
|
||||
.map(int.parse)
|
||||
.toList();
|
||||
List<int> split = data.split(':').reversed.map(int.parse).toList();
|
||||
int duration = 0;
|
||||
for (int i = 0; i < split.length; i++) {
|
||||
duration += split[i] * pow(60, i).toInt();
|
||||
|
||||
Reference in New Issue
Block a user