From 803cf00bd163bdb06db3e0277b3cf756f20d933f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=99=BD=E8=8C=B6=E6=B8=85=E6=AC=A2?= Date: Thu, 10 Aug 2023 12:45:12 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E4=BB=8E=E5=BD=93=E5=89=8D?= =?UTF-8?q?=E6=97=B6=E9=97=B4=E8=8E=B7=E5=8F=96=E5=AE=9E=E4=BE=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- time.go | 9 +++++++++ 1 file changed, 9 insertions(+) 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<白茶清欢>