-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Labels
Description
What is your opinion about this style of human dates?
Date transformation (compared to now)
2 days ago
1 week ago
in 4 days
Date transformation (compared to another date)
2 days before
1 week before
4 days later
Timespan
0 years, 3 months, 1 week, 1 day, 3 hours, 20 minutes, 0 seconds
See https://github.com/jenssegers/laravel-date
for more examples.
It would be great to have it all in one place. Is it a good idea to extend this library to provide both styles?
If yes, I think the transform
method could be extended with a $specific
parameter, and new methods like compare
(or diff
) and timespan
should be added.