Skip to content

Commit

Permalink
Update content about set globally default values
Browse files Browse the repository at this point in the history
  • Loading branch information
gouguoyin committed Mar 5, 2024
1 parent 59b34ad commit 5222300
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
3 changes: 1 addition & 2 deletions README.cn.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,7 @@ carbon.SetDefault(carbon.Default{
Locale: "zh-CN",
})
```

> 如果没有设置,默认布局模板是 `2006-01-02 15:04:05`, 默认时区是 `Local`, 默认一周开始日期是 `Sunday(周日)`, 默认语言是 `en`
> 建议在入口文件如 `main.go` 中设置
##### `Carbon``time.Time` 互转

Expand Down
2 changes: 1 addition & 1 deletion README.jp.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ carbon.SetDefault(carbon.Default{
})
```

> 設定されていない場合,デフォルトのレイアウト テンプレートは `2006-01-02 15:04:05`,デフォルトのタイムゾーンは `Local`,デフォルトの週の開始日は `日曜日`,デフォルトの言語は `en` です。
>エントリファイル(` main.go `など)に設定することをお勧めします
##### Carbon と time.Time 交換

Expand Down
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,7 @@ carbon.SetDefault(carbon.Default{
Locale: "en",
})
```

> If not set, the default layout is `2006-01-02 15:04:05`, the default timezone is `Local`, the default week start date is `Sunday` and the default language locale is `en`
> Suggest setting in the entry file such as `main.go`
##### Convert between `Carbon` and `time.Time`

Expand Down

0 comments on commit 5222300

Please sign in to comment.