schema.py 文件源码

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

项目:graphql-compiler 作者: kensho-technologies 项目源码 文件源码
def _parse_datetime_value(value):
    """Deserialize a DateTime object from its proper ISO-8601 representation."""
    if value.endswith('Z'):
        # Arrow doesn't support the "Z" literal to denote UTC time.
        # Strip the "Z" and add an explicit time zone instead.
        value = value[:-1] + '+00:00'

    return arrow.get(value, 'YYYY-MM-DDTHH:mm:ssZ').datetime
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号