def localized_date_time(timestring):
'''returns localized version of the timestring (used in pvr)'''
date_time = arrow.get(timestring)
local_date = date_time.strftime(xbmc.getRegion("dateshort"))
local_time = date_time.strftime(xbmc.getRegion("time").replace(":%S", ""))
return (local_date, local_time)
评论列表
文章目录