package main
import (
"fmt"
"log"
"time"
)
func main() {
location, err := time.LoadLocation("Europe/Moscow")
if err != nil {
log.Fatal(err)
}
in := time.Now().In(location)
fmt.Println(in.Format("Z07:00"))
fmt.Println(in.Format("-0700"))
fmt.Println(in.Format("Z07"))
fmt.Println(in.Format("-07"))
}
// Вывод:
// +03:00
// +0300
// +03
// +03