Two gigaseconds #147

Merged
JanX2 merged 30 commits from two-gigaseconds into master 2021-05-06 22:50:26 -04:00
Showing only changes of commit 99680cca7f - Show all commits

View file

@ -25,7 +25,7 @@ NSString * timeStringForTimeInterval(NSTimeInterval timeInterval, BOOL enforceMi
if (days > 0) { if (days > 0) {
timeString = timeString =
[NSString localizedStringWithFormat:@"%s" "%02" PRIi64 ":" "%02" PRIi64 ":" "%02" PRIi64 ":" "%02" PRIi64, [NSString localizedStringWithFormat:@"%s" "%" PRIi64 ":" "%02" PRIi64 ":" "%02" PRIi64 ":" "%02" PRIi64,
need_minus_sign ? "-" : "", need_minus_sign ? "-" : "",
days, days,
hours, hours,
@ -34,7 +34,7 @@ NSString * timeStringForTimeInterval(NSTimeInterval timeInterval, BOOL enforceMi
} }
else if (hours > 0) { else if (hours > 0) {
timeString = timeString =
[NSString localizedStringWithFormat:@"%s" "%02" PRIi64 ":" "%02" PRIi64 ":" "%02" PRIi64, [NSString localizedStringWithFormat:@"%s" "%" PRIi64 ":" "%02" PRIi64 ":" "%02" PRIi64,
need_minus_sign ? "-" : "", need_minus_sign ? "-" : "",
hours, hours,
minutes, minutes,
@ -42,14 +42,14 @@ NSString * timeStringForTimeInterval(NSTimeInterval timeInterval, BOOL enforceMi
} }
else if (minutes > 0) { else if (minutes > 0) {
timeString = timeString =
[NSString localizedStringWithFormat:@"%s" "%02" PRIi64 ":" "%02" PRIi64, [NSString localizedStringWithFormat:@"%s" "%" PRIi64 ":" "%02" PRIi64,
need_minus_sign ? "-" : "", need_minus_sign ? "-" : "",
minutes, minutes,
seconds]; seconds];
} }
else { else {
timeString = timeString =
[NSString localizedStringWithFormat:@"%s" "00" ":" "%02" PRIi64, [NSString localizedStringWithFormat:@"%s" "0" ":" "%02" PRIi64,
need_minus_sign ? "-" : "", need_minus_sign ? "-" : "",
seconds]; seconds];
} }