CalendR icon indicating copy to clipboard operation
CalendR copied to clipboard

[Feature Request] Support Carbon package

Open morloderex opened this issue 8 years ago • 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.

morloderex avatar Dec 10 '15 15:12 morloderex

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.

yohang avatar Dec 10 '15 20:12 yohang

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.

morloderex avatar Dec 10 '15 22:12 morloderex

Any news regarding this? :)

morloderex avatar Dec 16 '15 07:12 morloderex

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

yohang avatar Dec 16 '15 08:12 yohang

Have you found out anything with this feature request yet?

morloderex avatar Feb 23 '16 14:02 morloderex