yohang/CalendR

[Feature Request] Support Carbon package

morloderex opened this issue · 5 comments

Hello Yohang

Is it at all possible that this package could support Carbon along side the Native \DateTime class, because The laravel elougent ORM is using this package out of the box.

And Carbon is a nice wrapper around the DateTime class

It's A LOT of work yeah i know, but it could be possible.

Hi,

I'll have a look, but atm I don't know anything of carbon.

If it can provide new features / flexibility without changing the global architecture of CalendR, why not.

For reference you could look at the documentation for it.

It has stuff like

Carbon::now()->diffForHumans();

would create something like 1 hour ago if it's 1 hour ago.

It also has methods for string formatting out of the box:

Carbon::create('first day of January 2008');   

which would create an object of Carbon from the first monday of january 2008.

And a lot more, i would love to use that in my project alongside this project.

Any news regarding this? :)

No, sorry, this is not in my top list ATM.

Have you found out anything with this feature request yet?