From f58567d6e2a7df9c4d6145a70cd536c9fbf44d79 Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Tue, 9 Dec 2008 10:27:30 -0800 Subject: [PATCH] more impossible time errors R=r DELTA=4 (0 added, 0 deleted, 4 changed) OCL=20788 CL=20818 --- src/lib/time/time.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/lib/time/time.go b/src/lib/time/time.go index e71e73b2eff..65b011c8665 100644 --- a/src/lib/time/time.go +++ b/src/lib/time/time.go @@ -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.