Did I find the right examples for you? yes no

All Samples(3)  |  Call(2)  |  Derive(0)  |  Import(1)

        def gittz(tz):
    return '%+03d%02d' % (-tz / 3600, -tz % 3600 / 60)
        


src/g/i/gitifyhg-0.8.4/gitifyhg/hgimporter.py   gitifyhg(Download)
from mercurial import encoding
 
from .util import (log, output, gittz, gitmode,
    git_to_hg_spaces, hg_to_git_spaces, branch_head, ref_to_name_reftype,
    BRANCH, BOOKMARK, TAG, relative_path)
 
            user = sanitize_author(user)
            author = "%s %d %s" % (user, time, gittz(tz))
 
            if 'committer' in extra:
                user, time, tz = extra['committer'].rsplit(' ', 2)
                user = sanitize_author(user)
                committer = "%s %s %s" % (user, time, gittz(int(tz)))