feat: updated docs and added description to files
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
package helper
|
||||
|
||||
// time helpers
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"time"
|
||||
@@ -27,11 +29,6 @@ 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
|
||||
}
|
||||
|
||||
func FormatDuration(d time.Duration) string {
|
||||
return FormatDurationFill(d, false)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user