Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(6)  |  Call(4)  |  Derive(0)  |  Import(2)

        def convert_timezone_to_local(dt):
    tz = get_localzone()
    dt = dt.astimezone(tz)
    return tz.normalize(dt)
        


src/c/h/chisubmit-0.1.1/src/chisubmit/cli/project.py   chisubmit(Download)
#  POSSIBILITY OF SUCH DAMAGE.
 
from chisubmit.common.utils import create_subparser, mkdatetime,\
    get_datetime_now_utc, convert_timezone_to_local
from chisubmit.core.model import Project, GradeComponent
 
    now_utc = get_datetime_now_utc()
    now_local = convert_timezone_to_local(now_utc)
 
    deadline_utc = project.get_deadline()
    deadline_local = convert_timezone_to_local(deadline_utc)

src/c/h/chisubmit-0.1.1/src/chisubmit/cli/submit.py   chisubmit(Download)
import chisubmit.core
 
from chisubmit.common.utils import create_subparser, set_datetime_timezone_utc, convert_timezone_to_local
from chisubmit.core.repos import GithubConnection
from chisubmit.common import CHISUBMIT_SUCCESS, CHISUBMIT_FAIL
 
    commit_time_utc = set_datetime_timezone_utc(commit.commit.author.date)
    commit_time_local = convert_timezone_to_local(commit_time_utc)
 
    deadline_utc = project.get_deadline()
    deadline_local = convert_timezone_to_local(deadline_utc)