utils/dates.go

11 lines
157 B
Go
Raw Permalink Normal View History

2023-10-02 23:42:16 +02:00
package utils
import (
"time"
)
// GetCurrentYear returns the current year as YYYY int64
func GetCurrentYear() int64 {
return int64(time.Now().Year())
}