mirror of
https://gitee.com/dromara/carbon.git
synced 2024-12-02 04:07:36 +08:00
修复 CreateFromTimestampMilli() 函数注释错误
This commit is contained in:
parent
10d3a27414
commit
b54403bc7d
@ -24,7 +24,7 @@ func CreateFromTimestamp(timestamp int64, timezone ...string) Carbon {
|
||||
}
|
||||
|
||||
// CreateFromTimestampMilli creates a Carbon instance from a given timestamp with millisecond.
|
||||
// 从给定的微秒级时间戳创建 Carbon 实例
|
||||
// 从给定的毫秒级时间戳创建 Carbon 实例
|
||||
func (c Carbon) CreateFromTimestampMilli(timestamp int64, timezone ...string) Carbon {
|
||||
if len(timezone) > 0 {
|
||||
c.loc, c.Error = getLocationByTimezone(timezone[len(timezone)-1])
|
||||
@ -37,7 +37,7 @@ func (c Carbon) CreateFromTimestampMilli(timestamp int64, timezone ...string) Ca
|
||||
}
|
||||
|
||||
// CreateFromTimestampMilli creates a Carbon instance from a given timestamp with millisecond.
|
||||
// 从给定的微秒级时间戳创建 Carbon 实例
|
||||
// 从给定的毫秒级时间戳创建 Carbon 实例
|
||||
func CreateFromTimestampMilli(timestamp int64, timezone ...string) Carbon {
|
||||
return NewCarbon().CreateFromTimestampMilli(timestamp, timezone...)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user