Opened 15 years ago

Closed 15 years ago

#7308 closed patch (fixed)

add time[zone] support to python bindings

Reported by: Raymond Wagner <raymond@…> Owned by: Anduin Withers
Priority: major Milestone: 0.22
Component: Bindings - Python Version: head
Severity: low Keywords:
Cc: Ticket locked: no

Description

Adds requested support from mythbuntu. New functions are:

MythTV.getTimeZone()
Direct call to QUERY_TIME_ZONE. Returns tuple with TZ name string, offset, and current time in ISO format.

MythTV.getTime()
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.

Attachments (1)

pyth.updates.patch (1.1 KB) - added by Raymond Wagner <raymond@…> 15 years ago.

Download all attachments as: .zip

Change History (2)

Changed 15 years ago by Raymond Wagner <raymond@…>

Attachment: pyth.updates.patch added

comment:1 Changed 15 years ago by robertm

Resolution: fixed
Status: newclosed

(In [22395]) Closes #7308. Adds timezone check functionality to the Python Bindings (matches Perl bindings). Useful for Live CD purposes to query the MBE for Timezone/Time?.

Note: See TracTickets for help on using tickets.