Opened 12 years ago

Closed 12 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


Adds requested support from mythbuntu. New functions are:

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

Returns an 'aware' datetime object of the current time on the backend. Currently just uses the GMT offset for timezone data. Pytz ( 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@…> 12 years ago.

Download all attachments as: .zip

Change History (2)

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

Attachment: pyth.updates.patch added

comment:1 Changed 12 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.