Getting more serious with dates
Similar to the previous program, we will now add a bit more difficulty. Print the following information:
- The current date and time.
- When your next birthday is (note that if you have already had your birthday this year, it will be next year!).
- How long it will be until your birthday starts again (your birthday starts at midnight).
- How many days you have been alive.
- Calculate the date on which you will be exactly twice as old as you are now.
Example
It is currently 13-02-2025 10:02:48
Your next birthday is: 25-02-2025
Your next birthday is in: 11 days, 13 hours, 57 minutes 11 seconds
You have been alive for 19347 days.
You will be twice as old (38694 days) on: 02-02-2078