Skip to content

Update JalaliDate.php#5

Open
miladr wants to merge 6 commits into
rarepixel-studio:masterfrom
miladr:master
Open

Update JalaliDate.php#5
miladr wants to merge 6 commits into
rarepixel-studio:masterfrom
miladr:master

Conversation

@miladr

@miladr miladr commented Jul 6, 2017

Copy link
Copy Markdown

Added four new functions.
Unfortunately I don't have time to add test right now.

@halaei

halaei commented Jul 8, 2017

Copy link
Copy Markdown
Collaborator

Thanks a lot. These methods are reasonable features. But I think the implementation is not 100% correct. Also, this PR needs some test.

Comment thread src/JalaliDate.php
public function lastDayOfMonth()
{
return new static($this->getYear(), $this->getMonth(), self::$daysInMonth[$this->getMonth()]);

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It does not work for Esfand

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's right. I fixed it.

@miladr

miladr commented Jul 8, 2017

Copy link
Copy Markdown
Author

I fixed that bug.
I will provide some test ASAP.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants