hijri: import
This commit is contained in:
15
hijri/hijri.go
Normal file
15
hijri/hijri.go
Normal 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())
|
||||
}
|
||||
Reference in New Issue
Block a user