示例#1
0
    def ctime(self):
        """Return a string representing the date and time.

        >>> datetime(1392, 9, 1, 12, 32, 14, 992).ctime()
        'Fri Aza 01 12:32:14 1392'
        """
        return jctime(jmktime(self.__jtm.copy()))
示例#2
0
文件: datetime.py 项目: ashkang/jcal
    def ctime(self):
        """Return a string representing the date and time.

        >>> datetime(1392, 9, 1, 12, 32, 14, 992).ctime()
        'Jom Aza 01 12:32:14 1392'
        """
        return jctime(jmktime(self.__jtm.copy()))
示例#3
0
    def ctime(self):
        """Return a string representing the date and time.

        >>> datetime(1392, 9, 1, 12, 32, 14, 992).ctime()
        'Fri Aza 01 12:32:14 1392'
        """
        # TODO:
        # this should be enough if jmktime fixed:
        # return jctime(jmktime(self.__jtm))
        njtm = self.__jtm.copy()
        jalali_update(njtm)
        return jctime(jmktime(njtm))
示例#4
0
 def ctime(self):
     """Return a string representing the date, ``date(1392, 8, 2).ctime() ==
     'Thu Aba 02 00:00:00 1392'``"""
     njtm = self.__jtm.copy()
     return jctime(jmktime(njtm))
示例#5
0
文件: datetime.py 项目: ashkang/jcal
 def ctime(self):
     """Return a string representing the date, ``date(1392, 8, 2).ctime() ==
     'Thu Aba 02 00:00:00 1392'``"""
     njtm = self.__jtm.copy()
     return jctime(jmktime(njtm))