Functions

Introduction to functions

  1. time()

  2. date()

  3. mktime()

  4. strtotime()

  5. date_default_timezone_set()

  6. Time and date formats

  7. Long date language

  8. Actions with dates

  9. date validation

Tasks

  1. Date and time display in the format 03/20/2023 17:31

  2. Find out how old or how old the user will be this year

  3. How many days are left until the end of this school year?

    For example: there are 64 days left until the end of the 2022 academic year!

  4. Print the picture for the season (spring, summer, autumn, winter)

  5. Find the number of whole hours that have passed from 7:23:48 AM of the current day to the present.

  6. Make an input field where the user enters the year (4 digits), and the script determines whether it is a leap year.