Documentation ¶
Overview ¶
Package parltime provides time utility functions
Index ¶
- Constants
- func Duro(period time.Duration, timeZone Tz, atTime time.Time) (d time.Duration)
- func GetTimeString(wallTime *time.Time) (s string)
- func Ms(d time.Duration) string
- func Ns(t time.Time) string
- func NsLocal(t time.Time) string
- func OnTimer(period time.Duration, timeZone Tz) (timer *time.Timer)
- func OnTimerLocal(period time.Duration) (timer *time.Timer)
- func OnTimerUTC(period time.Duration) (timer *time.Timer)
- func ParseNs(timeString string) (t time.Time, err error)
- func ParseS(timeString string) (t time.Time, err error)
- func ParseTime(dateString string) (tm time.Time, err error)
- func Rfc3339(t time.Time) string
- func S(t time.Time) string
- func SGreater(t1 time.Time, t2 time.Time) bool
- type Alert
- type OnTimed
- type Tz
Constants ¶
View Source
const ( // RFC3339NanoSpace RFC3339 format, ns precision, space separator RFC3339NanoSpace string = "2006-01-02 15:04:05.999999999Z07:00" )
Variables ¶
This section is empty.
Functions ¶
func GetTimeString ¶
GetTimeString rfc 3339: email time format 2020-12-04 20:20:17-08:00
func OnTimerLocal ¶
OnTimerLocal waits to the next on-the-hour like period
func OnTimerUTC ¶
OnTimerUTC waits to the next on-the-hour like period
Types ¶
type Alert ¶
Alert impelemnts a renewable alert timer
type OnTimed ¶
type OnTimed struct {
// contains filtered or unexported fields
}
OnTimed provides events to perform on the hour
func NewOnTimed ¶
NewOnTimed provides events to perform on the hour
func NewOnTimedLocal ¶
NewOnTimedLocal provides events to perform on the hour
Click to show internal directories.
Click to hide internal directories.