Opened 16 years ago
Closed 16 years ago
#7308 closed patch (fixed)
add time[zone] support to python bindings
Reported by: | 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)
Change History (2)
by , 16 years ago
Attachment: | pyth.updates.patch added |
---|
comment:1 by , 16 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
(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.