A Go library which implements Zeller's Congruence, which determines the day of the week for an arbitrary date.
For a wonderful article about Zellers formula read this article:
$ go get github.com/umahmood/zellers
package main
import (
"fmt"
"github.com/umahmood/zellers"
)
func main() {
fmt.Println(zellers.Congruence(10, 15, 2019))
}
Output:
Tuesday
See the LICENSE file for license rights and limitations (MIT).