16 lines
313 B
Go
16 lines
313 B
Go
|
|
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())
|
||
|
|
}
|