Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package main
- import (
- "time"
- "fmt"
- )
- func main() {
- loc, _ := time.LoadLocation("Europe/Berlin")
- const layout = "2006-01-20_15-04-05"
- t := time.Date(2013, 07, 23, 21, 32, 39, 0, loc)
- fmt.Println(t)
- fmt.Println(t.Format(layout))
- }
- 0
Add Comment
Please, Sign In to add comment