项目作者: thedevsaddam

项目描述 :
Tiny bengali ponjika based on Gregorian date
高级语言: Go
项目地址: git://github.com/thedevsaddam/ponjika.git
创建时间: 2018-03-30T16:15:42Z
项目社区:https://github.com/thedevsaddam/ponjika

开源协议:MIT License

下载


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

  1. $ go get github.com/thedevsaddam/ponjika

Usage

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

  1. import "github.com/thedevsaddam/ponjika"

Example

  1. package main
  2. import (
  3. "fmt"
  4. "time"
  5. "github.com/thedevsaddam/ponjika"
  6. )
  7. func main() {
  8. layout := "2006-01-02 15:04:05"
  9. t, _ := time.Parse(layout, "2018-04-14 14:18:00")
  10. p := ponjika.New(t)
  11. fmt.Println(p)
  12. fmt.Println(p.Phonetic())
  13. }
  14. // output:
  15. // ১ বৈশাখ ১৪২৫ রোজ শনিবার
  16. // 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.