mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-02-22 06:54:08 +01:00
🎨 Improve av api https://github.com/siyuan-note/siyuan/issues/16715
Signed-off-by: Daniel <845765@qq.com>
This commit is contained in:
parent
f5167ae895
commit
3c00f5a3d1
2 changed files with 13 additions and 2 deletions
|
|
@ -26,6 +26,11 @@ import (
|
|||
"github.com/88250/go-humanize"
|
||||
)
|
||||
|
||||
func IsTimeStr(str string) bool {
|
||||
_, err := time.Parse("20060102150405", str)
|
||||
return nil == err
|
||||
}
|
||||
|
||||
func GetTodayStart() (ret time.Time) {
|
||||
ret = time.Now()
|
||||
ret = time.Date(ret.Year(), ret.Month(), ret.Day(), 0, 0, 0, 0, time.Local)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue