diff --git a/hijri/hijri.go b/hijri/hijri.go new file mode 100644 index 0000000..4689d92 --- /dev/null +++ b/hijri/hijri.go @@ -0,0 +1,15 @@ +package main +import ( + "fmt" + "time" + "github.com/kiaderouiche/go-hijricalendar" +) + +func main() { + // Get a new instance of hijri.Time representing the current time + ht := hijri.Now(hijri.UmmAlQura()) + + // Get year, month, day + fmt.Println(ht.Date()) + fmt.Println(ht.Year(), ht.Month(), ht.Day()) +}