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:
parent
53c901bfa8
commit
f3d4f47e62
@ -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}";
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user