Beispiel #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()))
Beispiel #2
0
    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()))
Beispiel #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))
Beispiel #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))
Beispiel #5
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))