DatetimeΒΆ
How To: Basic::Datetime
Display current date and time
Determine whether a given year is a leap year
Convert a string to datetime
Get the current time
Subtract five days from current date
Convert unix timestamp string to readable date
Print yesterday, today, tomorrow
Convert the date to datetime (midnight of the date)
Print next 5 days starting from today
Add 5 seconds with the current time
Convert year/month/day to day of year
Get current time in milliseconds
Get week number
Find the date of the first monday of a given week
Select all the sundays of a specified year
Add year(s) with a given date and display the new date
Drop microseconds from datetime
Get days between two dates
Get the date of the last Tuesday
Test the third Tuesday of a month
Get the last day of a specified year and month
Get the number of days of a given month and year
Add a month with a specified date
Count the number of Monday of the 1st day of the Month
Print a string five times, delay three seconds
Calculate the date six months from the current date
Create 12 fixed dates from a specified date over a given period.
Get the dates 30 days before and after from the current date
Get the GMT and Local current time
Convert a date to the timestamp
Convert a string date to the timestamp
Calculate a number of days between two dates
Calculate no of days between two datetimes
Display the date and time in a human-friendly string
Convert a date to unix timestamp
Calculate two date difference in seconds
Convert two date difference in D,H,M,S
Get last modified information of a file
Calculate an age in year
Get the current date time information
Generate a date and time as a string
Display formatted text output of a month and start weeks on Sunday
Print a 3-column calendar for an entire year
Display a calendar for a locale
Get the current week
Create an HTML calendar for a specific year and month
Display a list of the dates for the 2nd Saturday of every month for a given year
Display a simple, formatted calendar of a given year and month
Convert a string into datetime
Get a list of dates between two dates
Generate RFC 3339 timestamp
Get the first and last second
Display examination schedule (date)
Display the current date and time.
Get execution time for a python method