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

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

        def set_datetime_timezone_utc(dt):
    return pytz.utc.localize(dt)
        


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
        return CHISUBMIT_FAIL
 
    commit_time_utc = set_datetime_timezone_utc(commit.commit.author.date)
    commit_time_local = convert_timezone_to_local(commit_time_utc)
 

src/c/h/chisubmit-0.1.1/src/chisubmit/core/model.py   chisubmit(Download)
import os.path
import chisubmit.core
from chisubmit.common.utils import set_datetime_timezone_utc
import urllib2
from chisubmit.core import ChisubmitException
    def get_deadline(self):
        return set_datetime_timezone_utc(self.deadline)
 
    def extensions_needed(self, submission_time):
        delta = (submission_time - self.get_deadline()).total_seconds()