added dates to text mode

This commit is contained in:
Mattia Mascarello 2024-11-20 16:50:59 +01:00
parent ee3a8babb2
commit 5ead0441ab

View File

@ -11,6 +11,29 @@ IPA [matːˈia maskarˈɛllo]
Born November 19, 2002 (age <?php echo $age; ?>)
Studying Computer Science at the University of Turin (Italy)
<?php
$day = (int) $now->format('d');
$month = (int) $now->format('m');
if($month == 11 && $day == 19) {
echo "Happy Birthday to me!\n";
}
else if($month == 12 && $day >= 18 && $day <= 27) {
echo "Merry Christmas!\n";
}
else if($month == 1 && $day == 1) {
echo "Happy New Year!\n";
}
else if($month == 4 && $day == 4){
echo "Happy NATO Day!\n";
}
else if($month == 6 && $day == 2){
echo "Buona Festa della Repubblica!\n";
}
else if($month == 5 && $day == 9){
echo "Happy Europe Day!\n";
}
?>
Some pictures of me: https://mattiaturin.duckdns.org/images