Lines Matching refs:seconds
96 fmt.Printf("there are %.0f seconds in %v\n", complex.Seconds(), complex)
100 // there are 4210 seconds in 1h10m10s
123 fmt.Printf("take off in t-%.0f seconds.", m.Seconds())
124 // Output: take off in t-90 seconds.
261 // When parsing, if the seconds value is followed by a decimal point
273 // Fractional seconds can be printed by adding a run of 0s or 9s after
274 // a decimal point in the seconds value in the layout string.
359 // 1 billion seconds of Unix, three ways.
360 fmt.Println(time.Unix(1e9, 0).UTC()) // 1e9 seconds
362 fmt.Println(time.Unix(2e9, -1e18).UTC()) // 2e9 seconds - 1e18 nanoseconds
365 fmt.Println(t.Unix()) // seconds since 1970
434 secondsEastOfUTC := int((8 * time.Hour).Seconds())
546 secondsEastOfUTC := int((8 * time.Hour).Seconds())