1
0
mirror of https://github.com/golang/go synced 2024-11-23 00:20:12 -07:00

more impossible time errors

R=r
DELTA=4  (0 added, 0 deleted, 4 changed)
OCL=20788
CL=20818
This commit is contained in:
Russ Cox 2008-12-09 10:27:30 -08:00
parent bf6164719a
commit f58567d6e2

View File

@ -145,8 +145,8 @@ export func SecondsToUTC(sec int64) *Time {
return t;
}
export func UTC() (t *Time, err *os.Error) {
return SecondsToUTC(Seconds()), nil
export func UTC() *Time {
return SecondsToUTC(Seconds())
}
// TODO: Should this return an error?
@ -161,8 +161,8 @@ export func SecondsToLocalTime(sec int64) *Time {
return t
}
export func LocalTime() (t *Time, err *os.Error) {
return SecondsToLocalTime(Seconds()), nil
export func LocalTime() *Time {
return SecondsToLocalTime(Seconds())
}
// Compute number of seconds since January 1, 1970.