geez/date/example_test.go

19 lines
270 B
Go
Raw Normal View History

package date
import (
"fmt"
"strings"
"time"
)
func ExampleConvert() {
var t time.Time
t = t.AddDate(2023, 00, 06) //Jan 7 2024
l := strings.Split(t.String(), " ")
s := Convert(l[0])
fmt.Printf("xmass %s\n", s)
//output: xmass 28-4-2016
}