hijri: import

This commit is contained in:
2026-03-14 07:21:42 +01:00
parent a182f694c0
commit 30a6debb7b

15
hijri/hijri.go Normal file
View File

@@ -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())
}