def gm2local(datetime): """ gm2local(datetime) Convert a DateTime instance holding UTC time to a DateTime instance using local time. """ return localtime(datetime.gmticks())
def gmticks(datetime): """gmticks(datetime) [DEPRECIATED: use the .gmticks() method] Returns a ticks value based on the values stored in datetime under the assumption that they are given in UTC, rather than local time. """ return datetime.gmticks()