timespec

package
v0.8.2 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2017 License: MIT Imports: 6 Imported by: 2

Documentation

Index

Constants

View Source
const AFTER = 57358
View Source
const AM = 57354
View Source
const AT = 57352
View Source
const DAILY = 57349
View Source
const EVERYDAY = 57360
View Source
const EVERYHOUR = 57361
View Source
const FRIDAY = 57367
View Source
const HALF = 57356
View Source
const HOURLY = 57348
View Source
const MONDAY = 57363
View Source
const MONTHLY = 57351
View Source
const NUMBER = 57346
View Source
const ON = 57353
View Source
const ORDINAL = 57347
View Source
const PM = 57355
View Source
const QUARTER = 57357
View Source
const SATURDAY = 57368
View Source
const SUNDAY = 57362
View Source
const THURSDAY = 57366
View Source
const TIL = 57359
View Source
const TUESDAY = 57364
View Source
const WEDNESDAY = 57365
View Source
const WEEKLY = 57350

Variables

This section is empty.

Functions

func LexerForFile

func LexerForFile(filename string) *yyLex

func LexerForString

func LexerForString(s string) *yyLex

func Next

func Next(s string) (time.Time, error)

Types

type Interval

type Interval uint
const (
	Hourly Interval = iota
	Daily
	Weekly
	Monthly
)

type Spec

type Spec struct {
	Interval   Interval
	TimeOfDay  int
	TimeOfHour int
	DayOfWeek  time.Weekday
	DayOfMonth int
	Week       int
}

func Parse

func Parse(s string) (*Spec, error)

func (*Spec) Next

func (s *Spec) Next(t time.Time) (time.Time, error)

func (*Spec) String

func (s *Spec) String() string

Jump to

Keyboard shortcuts

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