Did I find the right examples for you? yes no

All Samples(30)  |  Call(17)  |  Derive(0)  |  Import(13)
from finnish str rep to date obj

        def parse_date(datestr):
   "from finnish str rep to date obj"
   datestr.strip()
   d, m, y = datestr.split(".")
   return date(int(y),int(m),int(d))
        


src/k/r/kr-GitPython-0.3.1.1/git/objects/commit.py   kr-GitPython(Download)
from cStringIO import StringIO
 
from util import parse_date
from time import altzone, time
 
		author_date_str = env.get(cls.env_author_date, '')
		if author_date_str:
			author_time, author_offset = parse_date(author_date_str)
		else:
			author_time, author_offset = unix_time, offset
		# END set author time
 
		committer_date_str = env.get(cls.env_committer_date, '')
		if committer_date_str: 
			committer_time, committer_offset = parse_date(committer_date_str)

src/g/i/GitPython-0.3.2.RC1/git/objects/commit.py   GitPython(Download)
						hex_to_bin
						)
from util import (
						Traversable,
						Serializable,
		author_date_str = env.get(cls.env_author_date, '')
		if author_date_str:
			author_time, author_offset = parse_date(author_date_str)
		else:
			author_time, author_offset = unix_time, offset
		# END set author time
 
		committer_date_str = env.get(cls.env_committer_date, '')
		if committer_date_str: 
			committer_time, committer_offset = parse_date(committer_date_str)

src/g/i/GitPython-HEAD/git/objects/commit.py   GitPython(Download)
                        hex_to_bin
                        )
from util import (
                        Traversable,
                        Serializable,
        author_date_str = env.get(cls.env_author_date, '')
        if author_date_str:
            author_time, author_offset = parse_date(author_date_str)
        else:
            author_time, author_offset = unix_time, offset
        # END set author time
 
        committer_date_str = env.get(cls.env_committer_date, '')
        if committer_date_str: 
            committer_time, committer_offset = parse_date(committer_date_str)

src/t/w/twilio-3.6.6/twilio/rest/resources/conferences.py   twilio(Download)
from .util import parse_date, normalize_dates
from . import InstanceResource, ListResource
 
 
class Participant(InstanceResource):
        :param date created_before: List conferences created before this date
        """
        kwargs["DateUpdated"] = parse_date(kwargs.get("date_updated", updated))
        kwargs["DateCreated"] = parse_date(kwargs.get("date_created", created))
        kwargs["DateUpdated<"] = updated_before

src/t/w/twilio-3.6.6/twilio/rest/resources/calls.py   twilio(Download)
from .notifications import Notifications
from .recordings import Recordings
from .util import normalize_dates, parse_date
from . import InstanceResource, ListResource
 
        kwargs["StartTime<"] = started_before
        kwargs["StartTime>"] = started_after
        kwargs["StartTime"] = parse_date(started)
        kwargs["EndTime<"] = ended_before
        kwargs["EndTime>"] = ended_after
        kwargs["EndTime"] = parse_date(ended)

src/t/w/twilio-3.6.6/twilio/rest/resources/sms_messages.py   twilio(Download)
from .util import normalize_dates, parse_date
from . import InstanceResource, ListResource
 
 
class ShortCode(InstanceResource):
        kw["DateSent<"] = before
        kw["DateSent>"] = after
        kw["DateSent"] = parse_date(date_sent)
        return self.get_instances(kw)
 

src/t/w/twilio-3.6.6/twilio/rest/resources/messages.py   twilio(Download)
from . import InstanceResource, ListResource
from .media import MediaList
from .util import normalize_dates, parse_date
 
 
        kw["DateSent<"] = before
        kw["DateSent>"] = after
        kw["DateSent"] = parse_date(date_sent)
        return self.get_instances(kw)
 

src/t/w/twilio-3.6.6/twilio/rest/resources/media.py   twilio(Download)
from . import InstanceResource, ListResource
from .util import normalize_dates, parse_date
 
 
class Media(InstanceResource):
        kw["DateCreated<"] = before
        kw["DateCreated>"] = after
        kw["DateCreated"] = parse_date(date_created)
        return self.get_instances(kw)
 

src/n/e/netperf-wrapper-0.6.1/netperf_wrapper/resultset.py   netperf-wrapper(Download)
    from dateutil.parser import parse as parse_date
except ImportError:
    from .util import parse_date
 
try:
    def unserialise(cls, obj):
        metadata = dict(obj['metadata'])
        if 'TIME' in metadata:
            metadata['TIME'] = parse_date(metadata['TIME'])
        rset = cls(**metadata)

src/n/e/netperf-wrapper-HEAD/netperf_wrapper/resultset.py   netperf-wrapper(Download)
    from dateutil.parser import parse as parse_date
except ImportError:
    from .util import parse_date
 
try:
    def unserialise(cls, obj):
        metadata = dict(obj['metadata'])
        if 'TIME' in metadata:
            metadata['TIME'] = parse_date(metadata['TIME'])
        rset = cls(**metadata)

  1 | 2  Next