year, month and day arguments are required. Arguments are integers (or string representations of integers), in the following ranges:
Return the current date. All dates are GMT+0. For this example we're using the date 01/15/2015 00:00:00.000000.
Return the current local date and time. All dates are GMT+0. For this example we're using the date 01/15/2015 12:34:56.123456
Return the date corresponding to the proleptic Gregorian ordinal, where January 1 of year 1 has ordinal 1. For this example we're using the ordinal corresponding to the datetime 01/15/2015 00:00:00.000000.
Return the year for the date provided. Between min_year and max_year inclusive. For this example we're using the datetime 01/15/2015 12:34:56.123456.
Return the month for the date provided. Between 1 and 12 inclusive. For this example we're using the datetime 01/15/2015 12:34:56.123456.
Return the day for the date provided. Between 1 and the number of days in the given month of the given year. For this example we're using the datetime 01/15/2015 12:34:56.123456.
Return the hour for the datetime provided. Between min_hour and max_hour inclusive. For this example we're using the datetime 01/15/2015 12:34:56.123456.
Return the minute for the datetime provided. Between min_minute and max_minute inclusive. For this example we're using the datetime 01/15/2015 12:34:56.123456.
Return the second for the datetime provided. Between min_second and max_second inclusive. For this example we're using the datetime 01/15/2015 12:34:56.123456.
Return the microsecond for the datetime provided. Between min_microsecond and max_microsecond inclusive. For this example we're using the datetime 01/15/2015 12:34:56.123456.
Return the datetime beginning the day for the date provided . All dates are GMT+0. For this example we're using the date 01/15/2015 12:34:56.123456. This will return 01/15/2015 00:00:00.000000
Return the time with the date data omitted. For this example we're using the date 01/15/2015 12:34:56.123456. This will return the time value for 12:34:56.123456 in microseconds (45296123456).
Return a date with the same value, except for those parameters given new values by whichever keyword arguments are specified. For this example we're using the date 01/01/1970 00:00:00.000000 and replacing it with 01/15/2015 12:34:56.123456.
Return the proleptic Gregorian ordinal of the date, where January 1 of year 1 has ordinal 1. For this example we're using the ordinal corresponding to the datetime 01/15/2015 00:00:00.000000.
Return the day of the week as an integer, where Monday is 0 and Sunday is 6. For this example we're using the ordinal corresponding to the datetime 01/15/2015 00:00:00.000000, which is a Thursday (3).
Return the day of the week as an integer, where Monday is 1 and Sunday is 7. For this example we're using the ordinal corresponding to the datetime 01/15/2015 00:00:00.000000, which is a Thursday (4).
Return a dict/object with the ISO year, ISO week number, and ISO weekday values.
The ISO calendar is a widely used variant of the Gregorian calendar. See http://www.staff.science.uu.nl/~gent0113/calendar/isocalendar.htm for a good explanation.
The ISO year consists of 52 or 53 full weeks, and where a week starts on a Monday and ends on a Sunday. The first week of an ISO year is the first (Gregorian) calendar week of a year containing a Thursday. This is called week number 1, and the ISO year of that Thursday is the same as its Gregorian year.
For this example we're using the ordinal corresponding to the datetime 01/15/2015 00:00:00.000000.
Readable is an alias for datetime.datetime.isoformat. Return a string representing the date and time in ISO 8601 format, YYYY-MM-DDTHH:MM:SS.mmmmmm+HH:MM or, if microsecond is 0, YYYY-MM-DDTHH:MM:SS+HH:MM. For this example we're using the ordinal corresponding to the datetime 01/15/2015 00:00:00.000000.
Return a string representing the date and time in ISO 8601 format, YYYY-MM-DDTHH:MM:SS.mmmmmm+HH:MM or, if microsecond is 0, YYYY-MM-DDTHH:MM:SS+HH:MM. For this example we're using the ordinal corresponding to the datetime 01/15/2015 00:00:00.000000.
Return a datetime corresponding to string, parsed according to format. An error is raised if the string and format can't be parsed or if it returns a value which isn't a valid datetime
Return a string representing the date and time, controlled by an explicit format string