document new parseformat

This commit is contained in:
Aaron Raddon
2018-03-24 17:02:24 -07:00
parent affe10976d
commit 934b3f146d
2 changed files with 11 additions and 0 deletions

View File

@@ -30,8 +30,14 @@ func main() {
datestr = flag.Args()[0]
layout, err := dateparse.ParseFormat(datestr)
if err != nil {
panic(err.Error())
}
zonename, _ := time.Now().In(time.Local).Zone()
fmt.Printf("\nYour Current time.Local zone is %v\n", zonename)
fmt.Printf("\nLayout String: dateparse.ParseFormat() => %v\n", layout)
var loc *time.Location
if timezone != "" {
// NOTE: This is very, very important to understand