Skip to content

nuttmeister/beertime

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

beertime

beer time is a binary time format that indicates if it's beer time or if you should get back to work!

Example

package main

import (
	"fmt"
	"time"

	"github.com/nuttmeister/beertime"
)

func main() {
	// Get current local time.
	now := time.Now().Local()

	// Get beer time.
	beer := beertime.Now(now)
	dur := beertime.Duration(now)

	fmt.Printf("current beer time: %t. time to next: %s\n", beer, dur)
}

About

Musslan Beer Time (ISO-B33R) is a binary time format that tells you either true or false if you're permitted to drink beer or not.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages