Use util.Time consistently in types.go

This commit is contained in:
Jordan Liggitt
2014-12-10 17:00:41 -05:00
parent a299287ae8
commit 51bfb50698
8 changed files with 29 additions and 47 deletions

View File

@@ -28,6 +28,11 @@ type Time struct {
time.Time
}
// NewTime returns a wrapped instance of the provided time
func NewTime(time time.Time) Time {
return Time{time}
}
// Date returns the Time corresponding to the supplied parameters
// by wrapping time.Date.
func Date(year int, month time.Month, day, hour, min, sec, nsec int, loc *time.Location) Time {