timespec

package
v6.0.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2016 License: MIT Imports: 6 Imported by: 2 modules, 2 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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