DateTime.py 文件源码

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

项目:isf 作者: w3h 项目源码 文件源码
def greaterThan(self, t):
        """Compare this DateTime object to another DateTime object
        OR a floating point number such as that which is returned
        by the python time module.

        Returns true if the object represents a date/time greater
        than the specified DateTime or time module style time.

        Revised to give more correct results through comparison of
        long integer microseconds.
        """
        if t is None:
            t = 0
        if isinstance(t, float):
            return self._micros > long(t * 1000000)
        try:
            return self._micros > t._micros
        except AttributeError:
            return self._micros > t
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号