Files
to-hen/hijri/hijri.go

16 lines
313 B
Go
Raw Permalink Normal View History

2026-03-14 07:21:42 +01:00
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())
}