OSDN Git Service

Update to current version of Go library.
[pf3gnuchains/gcc-fork.git] / libgo / go / time / time.go
index 4abd112..40338f7 100644 (file)
@@ -6,30 +6,6 @@
 // displaying time.
 package time
 
-import (
-       "os"
-)
-
-// Seconds reports the number of seconds since the Unix epoch,
-// January 1, 1970 00:00:00 UTC.
-func Seconds() int64 {
-       sec, _, err := os.Time()
-       if err != nil {
-               panic(err)
-       }
-       return sec
-}
-
-// Nanoseconds reports the number of nanoseconds since the Unix epoch,
-// January 1, 1970 00:00:00 UTC.
-func Nanoseconds() int64 {
-       sec, nsec, err := os.Time()
-       if err != nil {
-               panic(err)
-       }
-       return sec*1e9 + nsec
-}
-
 // Days of the week.
 const (
        Sunday = iota
@@ -47,7 +23,7 @@ type Time struct {
        Month, Day           int    // Jan-2 is 1, 2
        Hour, Minute, Second int    // 15:04:05 is 15, 4, 5.
        Weekday              int    // Sunday, Monday, ...
-       ZoneOffset           int    // seconds east of UTC, e.g. -7*60 for -0700
+       ZoneOffset           int    // seconds east of UTC, e.g. -7*60*60 for -0700
        Zone                 string // e.g., "MST"
 }