Time Format in Go

package main

import "fmt"
import "time"

func main() {
    currenttime := time.Now()
    fmt.Println(currenttime.Format(time.RFC3339))

    fmt.Println(
        currenttime.Year(), currenttime.Month(), currenttime.Day(),
        currenttime.Hour(), currenttime.Minute(), currenttime.Second())
}



out put :

2018-08-18T14:36:30+05:30

2018 August 18 14 36 30