@Month()

New in 2.0

Generate random month names

Date and TimeSince 2.0.0

Parameters

NameTypeRequiredDefaultDescription
localeInternationalized languages, currently only supporting Chinese (zh_CN) and English (en), default zh_CN

Usage

@Month()

Generate Chinese month name

Example:
@Month()
Output:
一月
@Month(arg0)

Generate month name in specified locale

Example:
@Month()
Output:
January
← Back to Function Reference