We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hello
this is a simple code trying to convert s to day / hour / min Ps :I'm using php 7
<?php include("Convertor.php"); $simpleConvertor = new Convertor(1209867, "s"); var_dump($simpleConvertor->to(array('day', 'hr', 'min')));
this is the result:
array(3) { ["day"]=> float(14.003090277778) ["hr"]=> float(336.07416666667) ["min"]=> float(40328.9) }
would be good to get the correct convert seconds to day(if possible ) / hours / min
like :
14 days 4 minutes 27 seconds
Thanks
The text was updated successfully, but these errors were encountered:
Your result is the intended one, you should use a date conversion package for that, not a unit converion library
Sorry, something went wrong.
No branches or pull requests
Hello
this is a simple code trying to convert s to day / hour / min
Ps :I'm using php 7
this is the result:
would be good to get the correct convert seconds to day(if possible ) / hours / min
like :
Thanks
The text was updated successfully, but these errors were encountered: