mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
more impossible time errors
R=r DELTA=4 (0 added, 0 deleted, 4 changed) OCL=20788 CL=20818
This commit is contained in:
parent
bf6164719a
commit
f58567d6e2
1 changed files with 4 additions and 4 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue