Plex Media Center for OS X Leopard

5.5.3. Datetime — Creates and interacts with date & time objects

The Datetime module contains functions that aid in manipulating date & time values.

This module defines the following functions:

Datetime.Now()

Returns an object representing the current date and time.

Returns:The current date and time
Return type:datetime
Datetime.ParseDate(date)

Attempts to parse a date & time from a given string using common formatting conventions.

TODO: Information about supported formatting conventions.
Parameter:date (str) – A date & time
Returns:An object representing the parsed date & time
Return type:datetime
Datetime.Delta(days = 0, seconds = 0, microseconds = 0, milliseconds = 0, minutes = 0, hours = 0, weeks = 0)

Returns an object representing the given duration.

Return type:timedelta

Previous topic

5.5.2. Hash — Hash generation

Next topic

6. Objects