Documentation
¶
Index ¶
- func IsItToday(t time.Time) bool
- func Last7Days() (days []carbon.Carbon)
- func Last30Days() (days []carbon.Carbon)
- func LastFewDays(n int) (days []carbon.Carbon)
- func Within7Days() (start, end carbon.Carbon)
- func Within30Days() (start, end carbon.Carbon)
- func WithinAFewDays(n int) (start, end carbon.Carbon)
- func WithinMonth(year int, month int) (start, end carbon.Carbon)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Last30Days ¶
Last30Days returns timestamps for the last 30 consecutive days
func LastFewDays ¶
LastFewDays returns a list of timestamps for the most recent N days.
func Within7Days ¶
Within7Days returns 7-day time range
func Within30Days ¶
Within30Days returns 30-day time range
func WithinAFewDays ¶
WithinAFewDays calculates time range for previous N days including current day
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.