Ejemplo n.º 1
0
    def get_time(self):
        """
        Get the current whole format time
        :return: String format time
        """
        result = ""

        time = reference.LocalTimezone()

        result = strftime("%A, %d %B %Y %I:%M:%S %p ", localtime())

        result += time.tzname(datetime.datetime.now())
        return result
Ejemplo n.º 2
0
def get_time():
    """
    Get the current whole format time
    :return: String format time
    """
    result = ""
    from pytz import reference
    import datetime
    time = reference.LocalTimezone()

    from time import localtime, strftime
    result = strftime("%A, %d %B %Y %I:%M:%S %p ", localtime())

    result += time.tzname(datetime.datetime.now())
    return result