- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for ExampleTime_Unix (0.17 sec)
-
src/time/example_test.go
fmt.Println(umt.UnixMilli()) t := time.UnixMilli(umt.UnixMilli()).UTC() fmt.Println(t) // Output: // 1257894000000 // 2009-11-10 23:00:00 +0000 UTC } func ExampleTime_Unix() { // 1 billion seconds of Unix, three ways. fmt.Println(time.Unix(1e9, 0).UTC()) // 1e9 seconds fmt.Println(time.Unix(0, 1e18).UTC()) // 1e18 nanoseconds
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Feb 13 01:05:00 UTC 2024 - 22.4K bytes - Viewed (0)