def get_tzdiff(local, remote):
    '''
    little hack because of pretty bad time difference management in python
    TODO: can this solve datetime module itself?
    '''
    delta_minute = (local.hour - remote.hour) * 60 + (local.minute - remote.minute)
    sign = delta_minute < 0 and '-' or '+'
    hour = abs(delta_minute/60)
    minute = delta_minute%60
    return '%s%02d%02d' % (sign, hour, minute)
dataset/ETHPy150Open ella/citools/citools/debian/commands.py/get_tzdiff/original