mirror of
https://github.com/dagu-org/dagu.git
synced 2025-12-28 06:34:22 +00:00
12 lines
261 B
Go
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()}
|
|
}
|