Go言語
Go言語で現地の現在時刻を表示する
現在時刻を表示します。
show_current_local_time.go
package main
import (
"fmt"
"time"
)
func main() {
fmt.Println("Current time is ", time.Now())
}
実行結果
$ go run show_current_local_time.go
Current time is 2015-01-01 22:39:59.5021292 +0900 +0900