'Represent the date according to deployment settings &/or T()
@param time: the time
@param format: the time format (overrides deployment setting)
@param utc: the time is given in UTC'

@classmethod
def time_represent(cls, time, format=None, utc=False):

    settings = current.deployment_settings
    if (format is None):
        format = settings.get_L10n_time_format()
    if (time and utc):
        if (not isinstance(time, datetime.datetime)):
            today = datetime.datetime.utcnow().date()
            time = datetime.datetime.combine(today, time)
        offset = cls.get_offset_value(current.session.s3.utc_offset)
        if offset:
            time = (time + datetime.timedelta(seconds=offset))
    if isinstance(time, datetime.datetime):
        time = time.time()
    if time:
        try:
            return time.strftime(str(format))
        except AttributeError:
            raise TypeError(('Invalid    argument    type:    %s' % type(time)))
    else:
        return current.messages['NONE']
