Search This Blog

Tuesday, February 6

Usefull Links

 What is an API? (Application Programming Interface) -- https://www.mulesoft.com/resources/api/what-is-an-api


Framework vs Library vs Platform vs API vs SDK vs Toolkits vs IDE

https://medium.com/@shashvatshukla/framework-vs-library-vs-platform-vs-api-vs-sdk-vs-toolkits-vs-ide-50a9473999db 



JavaScript Tutorial -- https://javascript.info/

Websites Every Developer Should Visit: Programming News, Tutorials -- https://stackify.com/18-websites-every-developer-should-visit-right-now/

Gmail SMTP Debug Error
https://stackoverflow.com/questions/20337040/gmail-smtp-debug-error-please-log-in-via-your-web-browser


How to determine a user's IP address in node
https://stackoverflow.com/questions/8107856/how-to-determine-a-users-ip-address-in-node


request-ip Module
https://www.npmjs.com/package/request-ip

 Node.js get client IP address · GitHub
https://gist.github.com/qiao/1626318#gistcomment-594711  

///*****************************************************************************///

$datetime1 = new DateTime('2018-03-22 16:54:00');
$datetime2 = new DateTime('2019-03-22 16:53:00');
$interval = $datetime1->diff($datetime2);


echo $interval->format('%h')." Hours ".$interval->format('%i')." Minutes"."<br>";

$hourdiff = round((strtotime('2018-03-22 16:54:16') - strtotime('2018-03-21 15:35:00'))/3600, 1);

echo $hourdiff;

//echo secondsToTime(1640467);
//function secondsToTime($seconds) {
    $dtF = new DateTime('@0');
    $dtT = new DateTime("@79200");
    echo $dtF->diff($dtT)->format('%a days, %h hours, %i minutes and %s seconds');
//}


///*****************************************************************************///

No comments:

Post a Comment