icu4c

package
v0.0.0-...-c3f8592 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 28, 2021 License: MIT Imports: 6 Imported by: 0

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

type TZName

type TZName string

TZName is the tz database name such as "Asia/Hong_Kong". Note that this is different from the name returned by time.Zone().

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL