Tiny bengali ponjika based on Gregorian date
Install the package using
$ go get github.com/thedevsaddam/ponjika
To use the package import it in your *.go
code
import "github.com/thedevsaddam/ponjika"
package main
import (
"fmt"
"time"
"github.com/thedevsaddam/ponjika"
)
func main() {
layout := "2006-01-02 15:04:05"
t, _ := time.Parse(layout, "2018-04-14 14:18:00")
p := ponjika.New(t)
fmt.Println(p)
fmt.Println(p.Phonetic())
}
// output:
// ১ বৈশাখ ১৪২৫ রোজ শনিবার
// 1 Boisakh 1425 Roj Shonibar
This package is directly ported from Nuhil Mehdy's bangla-calendar
Special thanks to Ahmed shamim
See all contributors
Read API doc to know about Available options and Methods
The ponjika is an open-source software licensed under the MIT License.