arrow.py 文件源码

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

项目:fleaker 作者: croscon 项目源码 文件源码
def db_value(self, value):
        """Convert the Arrow instance to a datetime for saving in the db."""
        if isinstance(value, string_types):
            value = arrow.get(value)

        if isinstance(value, arrow.Arrow):
            value = value.datetime

        return super(ArrowDateTimeField, self).db_value(value)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号