mirror of
https://gitee.com/dromara/carbon.git
synced 2024-11-29 18:57:37 +08:00
更新文档
This commit is contained in:
parent
841e2d5cfc
commit
444ca54478
@ -565,7 +565,7 @@ carbon.Parse("2020-08-05 13:14:15").DayOfYear() // 218
|
||||
// 获取本年第几周
|
||||
carbon.Parse("2019-12-31 13:14:15").WeekOfYear() // 1
|
||||
carbon.Parse("2020-08-05 13:14:15").WeekOfYear() // 32
|
||||
> 关于周的计算请查看 [ISO 8601 标准](https://baike.baidu.com/item/ISO%208601/3910715?fr=aladdin#3 "ISO 8601 标准")
|
||||
> 关于周的计算请查看 [ISO8601 标准](https://baike.baidu.com/item/ISO%208601/3910715)
|
||||
|
||||
// 获取本月第几天
|
||||
carbon.Parse("2020-08-05 13:14:15").DayOfMonth() // 5
|
||||
|
Loading…
Reference in New Issue
Block a user