Rust Taskbook Level 6.10
Ask the user to enter two dates in the format year-month-day. Determine how many days there are between the entered dates.
Fill the array with random numbers from 1 to 100.
Output all dates of the current month to the console in the format year-month-day. Mark weekdays and weekends, as well as the current day.
Write a program that will generate the following string:
"12 34 56 78"
Write a program that will generate the following string:
"1+2-3+4-5+6-7+8"
Two dates are given in the following structure:
struct Date
{
year: u16,
month: u8,
day: u8,
}
Get the difference between these dates as the following structure:
struct Time
{
days: u16,
hours: u8,
minutes: u8,
seconds: u8,
}