morilog / jalali

This Package helps developers to easily work with Jalali (Shamsi or Iranian) dates in php appliations, based on Jalali (Shamsi) DateTime class.
MIT License
860 stars 110 forks source link

time is 00:00:00 #40

Closed webineh closed 6 years ago

webineh commented 6 years ago

why time is 00:00:00

$date = jDate::forge('last sunday')->format('datetime'); // 1391-10-02 00:00:00

?

morilog commented 6 years ago

This is native php date and time functionality date('Y-m-d H:i:s', strtotime('last sunday')) // 2018-04-22 00:00:00

morilog commented 6 years ago

Morteza Parvini

https://linkedin.com/in/morilog Software Developer - Jobinja https://jobinja.ir/?utm_source=signature&utm_medium=email&utm_campaign=staff&utm_content=morteza

https://jobinja.ir/?utm_source=signature&utm_medium=email&utm_campaign=staff&utm_content=morteza

On Sun, Apr 29, 2018 at 10:05 AM, vahid alvandi notifications@github.com wrote:

why time is 00:00:00

$date = jDate::forge('last sunday')->format('datetime'); // 1391-10-02 00:00:00

?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/morilog/jalali/issues/40, or mute the thread https://github.com/notifications/unsubscribe-auth/AD8oq-WlgYtp_fv1p1VS4t7iPxL9N-xBks5ttVEvgaJpZM4TrrTO .