go-persian-calendar icon indicating copy to clipboard operation
go-persian-calendar copied to clipboard

The implementation of Persian (Solar Hijri) Calendar in Go

Results 9 go-persian-calendar issues
Sort by recently updated
recently updated
newest added

solve problem that ptime.New() convert date from Gregorian to persian but dont convert time

Can not calculate correctly Sub Days with AddDate function example set the time to 1400-01-01 and use FirstWeekDay function to return and you see return 1400-06-26 instead of 1400-06-27 I...

### Missing two important method! - no method for validating date! - no method for parse string date! thanks!

enhancement

can't compare two different times

enhancement

While appreciating the project, AddDate() not works correctly. As a sample, today is 2023-06-11 OR 1402/03/21 By using this sample (the dates of the days of the future years): ```...

The last day of 1403 is 1403-12-30 which is equal to the 2025-03-20. Try to convert 2025-03-20 to the Solar Hijri by passing a `time.Time` object with 2025-03-20 value to...

Hi there, Thanks for sharing this amazing useful library. How can I set my now date location to `ptime.Iran()`: ``` pt := ptime.Now() fmt.Println(pt.Location()) // output: Local ```

i add is future and is past method , its useful for some cases like when we want to check a birth date be valid

This refactoring improves the performance of the `Format()`. ```console $ go test -bench=. -benchmem -count=10 > a.txt # before changes $ go test -bench=. -benchmem -count=10 > b.txt # after...