Skip to content

GoJalali is a module for work with Jalali/Persian Date and convert to Gregorian calendar system and vice-verca.

License

Notifications You must be signed in to change notification settings

waaldev/gojalali

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

github.com/siaminz/gojalali

Jalali Wrapper around time.Time, you can use all method from time package with this module.

Usage

Get the gojalali module

Note that you need to include the v in the version tag.

$ go get github.com/siaminz/[email protected]
package main

import (
    "fmt"

    "github.com/siaminz/gojalali"
)

func main() {
    // Get Current time in jalali format
    now := gojalali.Now()

    // Import Time from Go Standard Time
    gojalali.From(time.Now())

    // return time in string ex: 1401/08/24 15:34:65
    now.String()
}

About

GoJalali is a module for work with Jalali/Persian Date and convert to Gregorian calendar system and vice-verca.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages