1
0
mirror of https://github.com/go-micro/go-micro.git synced 2024-12-12 08:23:58 +02:00
go-micro/sync/time/local/local.go
2019-05-31 00:43:23 +01:00

19 lines
281 B
Go

// Package local provides a local clock
package local
import (
gotime "time"
"github.com/micro/go-micro/sync/time"
)
type Time struct{}
func (t *Time) Now() (gotime.Time, error) {
return gotime.Now(), nil
}
func NewTime(opts ...time.Option) time.Time {
return new(Time)
}