[mythtv-commits] Ticket #7308: add time[zone] support to python bindings
MythTV
mythtv at cvs.mythtv.org
Mon Oct 12 17:01:46 UTC 2009
#7308: add time[zone] support to python bindings
---------------------------------------------------+------------------------
Reporter: Raymond Wagner <raymond at wagnerrp.com> | Owner: awithers
Type: patch | Status: new
Priority: major | Milestone: 0.22
Component: Bindings - Python | Version: head
Severity: low | Mlocked: 0
---------------------------------------------------+------------------------
Adds requested support from mythbuntu. New functions are:
MythTV.getTimeZone()[[br]]
Direct call to QUERY_TIME_ZONE. Returns tuple with TZ name string, offset,
and current time in ISO format.
MythTV.getTime()[[br]]
Returns an 'aware' datetime object of the current time on the backend.
Currently just uses the GMT offset for timezone data. Pytz
(pytz.sourceforge.net) would have to be added as a dependency to properly
process Olson timezone string.
--
Ticket URL: <http://svn.mythtv.org/trac/ticket/7308>
MythTV <http://www.mythtv.org/>
MythTV
More information about the mythtv-commits
mailing list