dagu/internal/runstore/filestore/time.go
2025-05-06 14:47:19 +09:00

12 lines
261 B
Go

package filestore
import "time"
// TimeInUTC is a wrapper for time.Time that ensures the time is in UTC.
type TimeInUTC struct{ time.Time }
// NewUTC creates a new timeInUTC from a time.Time.
func NewUTC(t time.Time) TimeInUTC {
return TimeInUTC{t.UTC()}
}