mirror of
https://gitee.com/dromara/carbon.git
synced 2024-12-01 19:58:07 +08:00
Update content
This commit is contained in:
parent
d4ca9b25e7
commit
60efedaf66
@ -54,7 +54,7 @@ go mod edit -replace github.com/golang-module/carbon/v2=github.com/dromara/carbo
|
||||
```go
|
||||
carbon.SetDefault(carbon.Default{
|
||||
Layout: carbon.DateTimeLayout,
|
||||
Timezone: carbon.PRC,
|
||||
Timezone: carbon.UTC,
|
||||
WeekStartsAt: carbon.Sunday,
|
||||
Locale: "zh-CN", // 取值范围:lang 目录下翻译文件名,不包含文件后缀
|
||||
})
|
||||
|
@ -56,7 +56,7 @@ go mod edit -replace github.com/golang-module/carbon/v2=github.com/dromara/carbo
|
||||
```go
|
||||
carbon.SetDefault(carbon.Default{
|
||||
Layout: carbon.DateTimeLayout,
|
||||
Timezone: carbon.PRC,
|
||||
Timezone: carbon.UTC,
|
||||
WeekStartsAt: carbon.Sunday,
|
||||
Locale: "jp", // 値の範囲: langディレクトリ下の翻訳ファイル名でファイル拡張子は含まない
|
||||
})
|
||||
|
@ -55,7 +55,7 @@ go mod edit -replace github.com/golang-module/carbon/v2=github.com/dromara/carbo
|
||||
```go
|
||||
carbon.SetDefault(carbon.Default{
|
||||
Layout: carbon.DateTimeLayout,
|
||||
Timezone: carbon.Local,
|
||||
Timezone: carbon.UTC,
|
||||
WeekStartsAt: carbon.Sunday,
|
||||
Locale: "en", // value range: translate file name in the lang directory, excluding file suffix
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user