mirror of
https://github.com/osukey/osukey.git
synced 2025-08-07 16:43:52 +09:00
Revert unrelated changes
This commit is contained in:
@ -22,11 +22,5 @@ namespace osu.Game.Extensions
|
|||||||
/// <returns>An editor formatted display string.</returns>
|
/// <returns>An editor formatted display string.</returns>
|
||||||
public static string ToEditorFormattedString(this TimeSpan timeSpan) =>
|
public static string ToEditorFormattedString(this TimeSpan timeSpan) =>
|
||||||
$"{(timeSpan < TimeSpan.Zero ? "-" : string.Empty)}{timeSpan:mm\\:ss\\:fff}";
|
$"{(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}";
|
|
||||||
}
|
}
|
||||||
}
|
}
|
Reference in New Issue
Block a user