mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-02-22 06:54:08 +01:00
🎨 Improve av https://github.com/siyuan-note/siyuan/issues/15498
This commit is contained in:
parent
c1682895ef
commit
96346a94ad
3 changed files with 10 additions and 5 deletions
|
|
@ -26,6 +26,12 @@ import (
|
|||
"github.com/88250/go-humanize"
|
||||
)
|
||||
|
||||
func GetTodayStart() (ret time.Time) {
|
||||
ret = time.Now()
|
||||
ret = time.Date(ret.Year(), ret.Month(), ret.Day(), 0, 0, 0, 0, time.Local)
|
||||
return
|
||||
}
|
||||
|
||||
// Weekday returns the day of the week specified by date.
|
||||
// Sunday=0, Monday=1, ..., Saturday=6.
|
||||
func Weekday(date time.Time) int {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue