Commit f58567d6 authored by Russ Cox's avatar Russ Cox

more impossible time errors

R=r
DELTA=4  (0 added, 0 deleted, 4 changed)
OCL=20788
CL=20818
parent bf616471
......@@ -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.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment