示例#1
0
func getExportDate() schema.Datum {
	now := schema.Datum{}
	t := time.Now()

	now.Time = &t

	return now
}
示例#2
0
func getDateTo() schema.Datum {
	datum := schema.Datum{}

	t, err := time.Parse(hunDateForm, os.Args[4])
	if err == nil {
		datum.Time = &t
		util.Log(datum, "Datum found: %v")
	}

	if datum.Time == nil {
		util.Log("", "Datum not found %s")
	}

	return datum
}