v0.0.577
All checks were successful
Build Docker and Deploy / Run goext test-suite (push) Successful in 3m7s
All checks were successful
Build Docker and Deploy / Run goext test-suite (push) Successful in 3m7s
This commit is contained in:
parent
a93b93a3cd
commit
98c591b019
@ -1,5 +1,5 @@
|
||||
package goext
|
||||
|
||||
const GoextVersion = "0.0.576"
|
||||
const GoextVersion = "0.0.577"
|
||||
|
||||
const GoextVersionTimestamp = "2025-05-18T14:26:24+0200"
|
||||
const GoextVersionTimestamp = "2025-05-18T21:42:18+0200"
|
||||
|
@ -69,15 +69,15 @@ func FormatNaturalDurationEnglish(iv time.Duration) string {
|
||||
|
||||
func FormatDurationGerman(iv time.Duration) string {
|
||||
if sec := int64(iv.Seconds()); sec < 180 {
|
||||
return fmt.Sprintf("%d s", sec)
|
||||
return fmt.Sprintf("%ds", sec)
|
||||
}
|
||||
|
||||
if mins := int64(iv.Minutes()); mins < 180 {
|
||||
return fmt.Sprintf("%d min", mins)
|
||||
return fmt.Sprintf("%dmin", mins)
|
||||
}
|
||||
|
||||
if hours := int64(iv.Hours()); hours < 72 {
|
||||
return fmt.Sprintf("%d h", hours)
|
||||
return fmt.Sprintf("%dh", hours)
|
||||
}
|
||||
|
||||
if days := int64(iv.Hours() / 24.0); days < 21 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user