Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Date and Time helper for PHP (like Joda-Time in Java) [closed]

I am looking for a library (open source) like Joda-Time in the Java world. Is there any library like that?

Joda-Time is very helpful to calculate date and time. I can add days, weeks, month, year and also can converting date and time easily.

I wish there is library like Joda-Time for PHP.

Edit: I need some functions that available in Joda-Time like daysBetween (to calculate number of days between 2 date), monthsBetween and weeksBetween ... Some functions about add and substract date is available from PHP itself.

like image 707
nightingale2k1 Avatar asked Aug 25 '09 03:08

nightingale2k1


1 Answers

This is what you are looking for : https://github.com/briannesbitt/Carbon

like image 178
EvilThinker Avatar answered Nov 16 '22 03:11

EvilThinker