code: def to_localized_time(self, date, **kw):
          
          if date is None:
              return ""
          # default options
          options = {
              "long_format": True,
              "time_only": False,
              "context": api.get_portal(),
              "request": api.get_request(),
              "domain": "senaite.core",
          }
          options.update(kw)
          return ulocalized_time(date, **options)
docs: Converts the given date to a localized time string