code: def TimeFromTicks(ticks, tz=None):
      
      dt = datetime.datetime.fromtimestamp(ticks, tz=tz)
      return dt.timetz()
docs: Construct a DB-API time value from the given ticks value.
  
      :type ticks: float
      :param ticks:
          a number of seconds since the epoch; see the documentation of the
          standard Python time module for details.
  
      :type tz: :class:`datetime.tzinfo`
      :param tz: (Optional) time zone to use for conversion
  
      :rtype: :class:`datetime.time`
      :returns: time represented by ticks.