@Month()
New in 2.0Generate random month names
Date and TimeSince 2.0.0
Parameters
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
| locale | — | — | Internationalized 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