Skip to content

Commit

Permalink
ToStdTime->StdTime
Browse files Browse the repository at this point in the history
  • Loading branch information
gouguoyin committed Feb 1, 2024
1 parent ee227c1 commit bbe200a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.cn.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ carbon.SetDefault(carbon.Default{
// 将标准 time.Time 转换成 Carbon
carbon.CreateFromStdTime(time.Now())
// 将 Carbon 转换成标准 time.Time
carbon.Now().ToStdTime()
carbon.Now().StdTime()
```

##### 昨天、今天、明天
Expand Down
2 changes: 1 addition & 1 deletion README.jp.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ carbon.SetDefault(carbon.Default{
// 標準の time.Time を Carbon に変換します
carbon.CreateFromStdTime(time.Now())
// Carbon を標準の time.Time に変換します
carbon.Now().ToStdTime()
carbon.Now().StdTime()
```

##### 昨日、今日、明日
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,10 @@ carbon.SetDefault(carbon.Default{
##### Convert between Carbon and Time

```go
// Convert standard Time.time into Carbon
// Convert standard Time.time to Carbon
carbon.CreateFromStdTime(time.Now())
// Convert Carbon to standard Time.time
carbon.Now().ToStdTime()
carbon.Now().StdTime()
```

##### Yesterday, today and tomorrow
Expand Down

0 comments on commit bbe200a

Please sign in to comment.