SimpleCloudNotifier/server/api/models/utils.go
2022-11-18 21:25:40 +01:00

15 lines
220 B
Go

package models
import (
"gogs.mikescher.com/BlackForestBytes/goext/langext"
"time"
)
func timeOptFmt(t *time.Time, fmt string) *string {
if t == nil {
return nil
} else {
return langext.Ptr(t.Format(fmt))
}
}