1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-16 01:42:58 +08:00

Revert unrelated changes

This commit is contained in:
Dean Herbert 2021-07-31 15:52:36 +09:00
parent 53c901bfa8
commit f3d4f47e62

View File

@ -22,11 +22,5 @@ namespace osu.Game.Extensions
/// <returns>An editor formatted display string.</returns>
public static string ToEditorFormattedString(this TimeSpan timeSpan) =>
$"{(timeSpan < TimeSpan.Zero ? "-" : string.Empty)}{timeSpan:mm\\:ss\\:fff}";
public static string ToFormattedDuration(this double milliseconds) =>
ToFormattedDuration(TimeSpan.FromMilliseconds(milliseconds));
public static string ToFormattedDuration(this TimeSpan timeSpan) =>
timeSpan.Hours == 0 ? $"{timeSpan:mm\\:ss}" : $"{timeSpan:HH\\:mm\\:ss}";
}
}