Documentation ¶
Index ¶
Constants ¶
View Source
const ( DateFormatStyleNone = C.UDAT_NONE DateFormatStyleShort = C.UDAT_SHORT DateFormatStyleMedium = C.UDAT_MEDIUM DateFormatStyleLong = C.UDAT_LONG DateFormatStyleFull = C.UDAT_FULL )
Variables ¶
View Source
var ErrLocalTZ = errors.New("icu4c: Go Local tz name is not supported")
Functions ¶
func FormatDatetime ¶
func FormatDatetime(languageTag language.Tag, tzName TZName, dateStyle DateFormatStyle, timeStyle DateFormatStyle, t time.Time) (out string, err error)
Types ¶
type DateFormatStyle ¶
type DateFormatStyle C.UDateFormatStyle
Click to show internal directories.
Click to hide internal directories.