Documentation ¶
Index ¶
- Constants
- func AddHours(timeStart time.Time, timeAddedDeltaHours float64) time.Time
- func GetLocationOffsetHours(location *time.Location) (offsetHrs int, err error)
- func GetLocationOffsetSec(location *time.Location) (offsetSec int, err error)
- func HoursToMicroseconds(hours float64) time.Duration
- func IntervalDurationHours(timeStart time.Time, timeEnd time.Time) float64
- func IsEmpty(t time.Time) bool
- func Maximum(a time.Time, b time.Time) time.Time
- func Minimum(a time.Time, b time.Time) time.Time
- func NewTimeStringRFC3339(year uint, month uint, day uint, hour uint, minute uint, second uint) string
- func ParseDayTimeStringInLocation(dayTimeString string, location *time.Location) (dayStartTime time.Time, err error)
- func SubHours(timeStart time.Time, timeSubtractedDeltaHours float64) time.Time
- func ToDayStart(timeStart time.Time) time.Time
- func ToHourStart(timeStart time.Time) time.Time
- func ToMinuteStart(timeStart time.Time) time.Time
- func ToMonthStart(timeStart time.Time) time.Time
- func ToNextMonthStart(timeStart time.Time) time.Time
- func ToPreviousMonthStart(timeStart time.Time) time.Time
Constants ¶
View Source
const (
FormatDayTimeString = "2006-01-02"
)
Time Format.
Variables ¶
This section is empty.
Functions ¶
func GetLocationOffsetHours ¶
func GetLocationOffsetSec ¶
func HoursToMicroseconds ¶
func IntervalDurationHours ¶
func NewTimeStringRFC3339 ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.