mirror of
https://github.com/araddon/dateparse.git
synced 2025-01-10 15:03:48 +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]
|
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
|
var loc *time.Location
|
||||||
if timezone != "" {
|
if timezone != "" {
|
||||||
// NOTE: This is very, very important to understand
|
// NOTE: This is very, very important to understand
|
||||||
@ -39,10 +41,10 @@ func main() {
|
|||||||
panic(err.Error())
|
panic(err.Error())
|
||||||
}
|
}
|
||||||
loc = l
|
loc = l
|
||||||
|
zonename, _ := time.Now().In(l).Zone()
|
||||||
|
fmt.Printf("Your Using time.Local set to location=%s %v \n", timezone, zonename)
|
||||||
}
|
}
|
||||||
|
fmt.Printf("\n")
|
||||||
zonename, _ := time.Now().In(time.Local).Zone()
|
|
||||||
fmt.Printf("\nYour Current time.Local zone is %v\n\n", zonename)
|
|
||||||
|
|
||||||
table := termtables.CreateTable()
|
table := termtables.CreateTable()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user