mirror of
https://github.com/JustArchiNET/ArchiSteamFarm.git
synced 2026-01-01 06:00:46 +00:00
Add minutes to human-readable TimeSpan, #387
This commit is contained in:
@@ -99,6 +99,15 @@ namespace ArchiSteamFarm {
|
||||
result.Append(',');
|
||||
}
|
||||
|
||||
if (timeSpan.Minutes > 0) {
|
||||
result.Append(" " + timeSpan.Minutes + " minute");
|
||||
if (timeSpan.Minutes > 1) {
|
||||
result.Append('s');
|
||||
}
|
||||
|
||||
result.Append(',');
|
||||
}
|
||||
|
||||
if (timeSpan.Seconds > 0) {
|
||||
result.Append(" " + timeSpan.Hours + " second");
|
||||
if (timeSpan.Seconds > 1) {
|
||||
|
||||
Reference in New Issue
Block a user