nicoml.py 文件源码

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

项目:niconico-tools 作者: mo-san 项目源码 文件源码
def _get_jst_from_utime(cls, timestamp):
        """
        UNIXTIME ???????????????'+09:00'??????

        1471084020 -> '2016-08-13 19:27:00'

        :param int timestamp: UNIXTIME???
        :rtype: str
        """
        return str(datetime.fromtimestamp(timestamp, timezone(timedelta(hours=+9))))[:-6]

    # @classmethod
    # def _get_utime(cls):
    #     """
    #     ??? UNIXTIME ????
    #
    #     '2016-08-13 19:27:00' -> 1471084020
    #
    #     :rtype: int
    #     """
    #     return datetime.now().timestamp()
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号