示例#1
0
文件: main.go 项目: mabetle/mcore
// DemoExcelTime demo
func DemoExcelTime(days string) {
	t := mcore.String(days).ToExcelTime()
	mcore.PrintTime(t)
}
示例#2
0
文件: main.go 项目: mabetle/mcore
// DemoNow demo
func DemoNow() {
	ds := time.Now()
	mcore.PrintTime(ds)
	fmt.Printf("")
}
示例#3
0
文件: main.go 项目: mabetle/mcore
// DemoTime demo
func DemoTime() {
	ds := "2015-09-06 00:00:00"
	t, _ := mcore.NewString(ds).ToTime()
	mcore.PrintTime(t)
}