增加从当前时间获取实例
This commit is contained in:
parent
e9749e4844
commit
803cf00bd1
9
time.go
9
time.go
@ -30,6 +30,15 @@ func OwnTime(inputTime time.Time) *Time {
|
||||
return instance
|
||||
}
|
||||
|
||||
// OwnTimeFromNow 从当前时间获取实例
|
||||
//
|
||||
// Author : go_developer@163.com<白茶清欢>
|
||||
//
|
||||
// Date : 12:44 2023/8/10
|
||||
func OwnTimeFromNow() *Time {
|
||||
return OwnTime(time.Now())
|
||||
}
|
||||
|
||||
// OwnTimeFromSecond 从秒获取实例
|
||||
//
|
||||
// Author : go_developer@163.com<白茶清欢>
|
||||
|
Loading…
Reference in New Issue
Block a user