chrono

package
v0.15.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 21, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsItToday

func IsItToday(t time.Time) bool

IsItToday 返回是否是今天的布尔值

func Last7Days

func Last7Days() (days []carbon.Carbon)

Last7Days 返回最近7天的时间列表

func Last30Days

func Last30Days() (days []carbon.Carbon)

Last30Days 返回最近30天的时间列表

func LastFewDays

func LastFewDays(n int) (days []carbon.Carbon)

LastFewDays 返回最近N天的时间列表

func Within7Days

func Within7Days() (start, end carbon.Carbon)

Within7Days 返回'7天内'的开始时间和截止时间

func Within30Days

func Within30Days() (start, end carbon.Carbon)

Within30Days 返回'30天内'的开始时间和截止时间

func WithinAFewDays

func WithinAFewDays(n int) (start, end carbon.Carbon)

WithinAFewDays 返回若干天内的起止时间

func WithinMonth added in v0.11.0

func WithinMonth(year int, month int) (start, end carbon.Carbon)

WithinMonth 返回指定年月的起止时间

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL