Welcome Guest, Not a member yet? Register   Sign In
Datetime Helper
#1
Music 

such as "Now", "Yesterday", "Tomorrow", "Last Week", "A few minute ago (like Facebook)" and others, and day counting of two date entries. and generating distance between these 2 dates in units of days, months, years, or even hours.

I think it can help for sorting article by date Entries. Thanks
Reply
#2

This is a framework not WordPress.

You can find code to do that all over the web
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply
#3

Already in there, similar to Carbon, etc. But fully localized with the system's timezone and locale and easy to convert between that and the user's timezone/locale.

Unfortunately, it looks like it didn't show up on the list of Libraries in the TOC.
Reply
#4

(10-18-2017, 04:15 AM)InsiteFX Wrote: This is a framework not WordPress.

You can find code to do that all over the web

Yes you certainly can. I found a brilliant 'time passed' snippet for my own common functions library in about five minutes. One that lets me set an arbitrary amount of units too, so I can have 2 hours or 2 hours and 3 minutes or 2 hours 3 mins and 27 seconds.

(10-18-2017, 06:09 AM)kilishan Wrote: Already in there, similar to Carbon, etc. But fully localized with the system's timezone and locale and easy to convert between that and the user's timezone/locale.

Unfortunately, it looks like it didn't show up on the list of Libraries in the TOC.

And I had no idea about that one. What a great addition. Thank you for sharing.

Paul.
Reply
#5

Like wise that's why I posted what I said.

Thank you @kilishan
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply
#6

(10-18-2017, 04:15 AM)InsiteFX Wrote: This is a framework not WordPress.

You can find code to do that all over the web

I agree. PHP own DateTime and DateInterval are all you need.
Reply




Theme © iAndrew 2016 - Forum software by © MyBB