Timestamps
Write a Python program to convert between a datetime and a Unix timestamp. Step-by-step explanation, colour-coded code and real output.
Online Learning Platform
Free tutorials, solved practice problems and interview prep for QA and automation engineers: Python, Playwright, Selenium, SQL, Git and more.
Write a Python program to convert between a datetime and a Unix timestamp. Step-by-step explanation, colour-coded code and real output.
Write a Python program to list every date in a week. Step-by-step explanation, colour-coded code and real output.
Write a Python program to find hours and minutes between two datetimes. Step-by-step explanation, colour-coded code and real output.
Write a Python program to count the working days (Monday to Friday) between two dates. Step-by-step explanation, colour-coded code and real output.
Write a Python program to add months to a date, clamping to the month's last day. Step-by-step explanation, colour-coded code and real output.
Write a Python program to find the last day of a month. Step-by-step explanation, colour-coded code and real output.
Write a Python program to check whether dates fall on a weekend. Step-by-step explanation, colour-coded code and real output.
Write a Python program to find the weekday of a date. Step-by-step explanation, colour-coded code and real output.
Write a Python program to calculate a person's age on a given date. Step-by-step explanation, colour-coded code and real output.
Write a Python program to count the days between two dates. Step-by-step explanation, colour-coded code and real output.
Write a Python program to find the dates 30 days after and 7 days before a date. Step-by-step explanation, colour-coded code and real output.
Write a Python program to convert the string "15/08/2026 09:30" into a datetime. Step-by-step explanation, colour-coded code and real output.
Take free timed mock tests with answers and explanations.