Skip to content

Commit

Permalink
Update content about test time
Browse files Browse the repository at this point in the history
  • Loading branch information
gouguoyin committed Oct 16, 2023
1 parent eb72261 commit cc79173
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.cn.md
Original file line number Diff line number Diff line change
Expand Up @@ -1521,6 +1521,7 @@ testNow := carbon.Parse("2020-08-05")
carbon.SetTestNow(testNow).Yesterday().ToDateString() // 2020-08-04
carbon.SetTestNow(testNow).Now().ToDateString() // 2020-08-05
carbon.SetTestNow(testNow).Tomorrow().ToDateString() // 2020-08-06
carbon.SetTestNow(testNow).Parse("2000-08-05").Age() // 30

carbon.Now().HasTestNow() // false
carbon.SetTestNow(testNow).HasTestNow() // true
Expand Down
1 change: 1 addition & 0 deletions README.jp.md
Original file line number Diff line number Diff line change
Expand Up @@ -1515,6 +1515,7 @@ testNow := carbon.Parse("2020-08-05")
carbon.SetTestNow(testNow).Yesterday().ToDateString() // 2020-08-04
carbon.SetTestNow(testNow).Now().ToDateString() // 2020-08-05
carbon.SetTestNow(testNow).Tomorrow().ToDateString() // 2020-08-06
carbon.SetTestNow(testNow).Parse("2000-08-05").Age() // 30

carbon.Now().HasTestNow() // false
carbon.SetTestNow(testNow).HasTestNow() // true
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -1521,6 +1521,7 @@ testNow := carbon.Parse("2020-08-05")
carbon.SetTestNow(testNow).Yesterday().ToDateString() // 2020-08-04
carbon.SetTestNow(testNow).Now().ToDateString() // 2020-08-05
carbon.SetTestNow(testNow).Tomorrow().ToDateString() // 2020-08-06
carbon.SetTestNow(testNow).Parse("2000-08-05").Age() // 30

carbon.Now().HasTestNow() // false
carbon.SetTestNow(testNow).HasTestNow() // true
Expand Down

0 comments on commit cc79173

Please sign in to comment.