This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
🌞 Morning 44 commits ███▌░░░░░░░░░░░░░░░░░ 17.1% | |
🌆 Daytime 119 commits █████████▋░░░░░░░░░░░ 46.1% | |
🌃 Evening 79 commits ██████▍░░░░░░░░░░░░░░ 30.6% | |
🌙 Night 16 commits █▎░░░░░░░░░░░░░░░░░░░ 6.2% |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// refference : https://www.w3resource.com/php-exercises/php-date-exercise-18.php | |
$bday = new DateTime('2021-05-18'); // Your date of birth | |
$today = new Datetime(date('Y-m-d')); | |
$diff = $today->diff($bday); | |
printf(' Your age : %d years, %d month, %d days', $diff->y, $diff->m, $diff->d); | |
printf("<br>"); | |
printf("<br>"); |