diff --git a/time.go b/time.go index 7c6b85a..df2938c 100644 --- a/time.go +++ b/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<白茶清欢>