transformations.py 文件源码

python
阅读 31 收藏 0 点赞 0 评论 0

项目:lagendacommun 作者: ecreall 项目源码 文件源码
def _date_to_dates(self, source, date_only=False, duau=False):
        result_data = time.strptime(source, "%Y-%m-%d %H:%M:%S")
        day = result_data.tm_mday
        if day == 1:
            day = '1er'
        art = ''
        if not duau:
            art = 'Le '

        result = art + str(day) + ' '\
                 + MONTH[result_data.tm_mon-1] + ' ' \
                 + str(result_data.tm_year)
        if not date_only:
            result += (' à '+ str(result_data.tm_hour) + 'h' + \
                       str(result_data.tm_min))

        return result
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号