Adding Functions + Finishing CI config #34

Merged
tom_trgr merged 7 commits from dev/ui into main 2025-09-10 09:59:09 +02:00
Showing only changes of commit 12ed9959cb - Show all commits

View File

@@ -20,6 +20,11 @@ func IsWeekend(ts time.Time) bool {
return ts.Weekday() == time.Saturday || ts.Weekday() == time.Sunday
}
func GetKW(t time.Time) int {
_, kw := t.ISOWeek()
return kw
}
// Converts duration to string
func FormatDuration(d time.Duration) string {
hours := int(d.Abs().Hours())