mirror of
https://github.com/araddon/dateparse.git
synced 2025-01-10 06:53:47 +08:00
add better console messaging to format test tool
This commit is contained in:
parent
d7f44806bc
commit
ffccba6ba2
@ -30,6 +30,8 @@ func main() {
|
||||
|
||||
datestr = flag.Args()[0]
|
||||
|
||||
zonename, _ := time.Now().In(time.Local).Zone()
|
||||
fmt.Printf("\nYour Current time.Local zone is %v\n", zonename)
|
||||
var loc *time.Location
|
||||
if timezone != "" {
|
||||
// NOTE: This is very, very important to understand
|
||||
@ -39,10 +41,10 @@ func main() {
|
||||
panic(err.Error())
|
||||
}
|
||||
loc = l
|
||||
zonename, _ := time.Now().In(l).Zone()
|
||||
fmt.Printf("Your Using time.Local set to location=%s %v \n", timezone, zonename)
|
||||
}
|
||||
|
||||
zonename, _ := time.Now().In(time.Local).Zone()
|
||||
fmt.Printf("\nYour Current time.Local zone is %v\n\n", zonename)
|
||||
fmt.Printf("\n")
|
||||
|
||||
table := termtables.CreateTable()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user