Closed shengslogar closed 4 years ago
Hello,
Please check the second example of the "Difference for humans" chapter, you need to disable the NO_ZERO_DIFF option using:
echo CarbonInterval::seconds(0)->forHumans(['options' => 0]);
Thanks.
Ah, thank you!
Greetings!
I encountered an issue with the following code:
Carbon version: 2.41.5
PHP version: 7.4.5
I expected to get:
But I actually get:
Carbon\CarbonInterval::seconds(>=1)->forHumans()
outputs as expected.Appreciate all your work on this project.
SS