How to use the grimoirelab.toolkit.datetime function in grimoirelab

To help you get started, we’ve selected a few grimoirelab examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github chaoss / prospector / wsgi / healthmeter / vcsinfo / importers / git_importer.py View on Github external
def get_commit_authorship(self, commit):
        data = commit['data']

        # Sanitize ext:(....) blocks from GIT_AUTHOR_NAME. hg-git adds these
        # for metadata.
        userid = self.userid_ext_hggit_regex.sub(' ', data['Author'])

        author = self.get_committer(userid=userid)
        timestamp = grimoirelab.toolkit.datetime.str_to_datetime(data['CommitDate'])

        return (author, timestamp)
github chaoss / prospector / wsgi / healthmeter / bloginfo / importers / rss.py View on Github external
def parse_date(timestamp):
        return grimoirelab.toolkit.datetime.unixtime_to_datetime(timestamp)

grimoirelab

Tool set for software development analytics

GPL-3.0
Latest version published 24 days ago

Package Health Score

84 / 100
Full package analysis

Similar packages