weekmap

package
v0.0.0-...-745d1e8 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2016 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type WeekMap

type WeekMap big.Int

WeekMap is a packed bitmap, where each bit represents one UTC hour in a week. Generate one from a ASCII representation with gen.go

func Parse

func Parse(packed string) (*WeekMap, error)

func (*WeekMap) Get

func (w *WeekMap) Get(t time.Time) bool

func (*WeekMap) Pack

func (w *WeekMap) Pack() string

func (*WeekMap) Set

func (w *WeekMap) Set(weekday time.Weekday, hour int, val bool)

Jump to

Keyboard shortcuts

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