fightbulc / moment.php

Parse, validate, manipulate, and display dates in PHP w/ i18n support. Inspired by moment.js
Other
973 stars 154 forks source link

Get unrounded date diff #199

Open tchari opened 3 years ago

tchari commented 3 years ago

I'm using from and getDays to get a handy date diff to determine the number of days between two dates. However, getDays rounds the result. Is there a way to get an unrounded result?