Skip to content

thedevsaddam/ponjika

Repository files navigation

Package ponjika

Build Status Project status Go Report Card Coverage Status GoDoc License

Tiny bengali ponjika based on Gregorian date

Installation

Install the package using

$ go get github.com/thedevsaddam/ponjika

Usage

To use the package import it in your *.go code

import "github.com/thedevsaddam/ponjika"

Example

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

Credit

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

License

The ponjika is an open-source software licensed under the MIT License.

About

Tiny bengali ponjika based on Gregorian date

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages