- Code
package main
import (
"fmt"
"github.com/uniplaces/carbon"
)
func main() {
loc := "Asia/Tokyo"
now, _ := carbon.NowInLocation(loc)
today := now.StartOfDay()
tomorrow := today.AddDay()
fmt.Println(now, today, tomorrow)
}
$ docker run --rm -it --privileged -v $(pwd):/app golang bash
$ cp /usr/share/zoneinfo/Asia/Tokyo /etc/localtime
$ date +%T -s "07:00:00"