code: def create_time_subscription(self, instance, on_data=None, timeout=60):
          
          manager = WebSocketSubscriptionManager(self, resource='time')
  
          # Represent subscription as a future
          subscription = TimeSubscription(manager)
  
          wrapped_callback = functools.partial(
              _wrap_callback_parse_time_info, subscription, on_data)
  
          manager.open(wrapped_callback, instance)
  
          # Wait until a reply or exception is received
          subscription.reply(timeout=timeout)
  
          return subscription
docs: Create a new subscription for receiving time updates of an instance.
          Time updates are emitted at 1Hz.
  
          This method returns a future, then returns immediately. Stop the
          subscription by canceling the future.
  
          :param str instance: A Yamcs instance name
  
          :param on_data: Function that gets called with
                          :class:`~datetime.datetime` updates.
          :type on_data: Optional[Callable[~datetime.datetime])
  
          :param timeout: The amount of seconds to wait for the request to
                          complete.
          :type timeout: Optional[float]
  
          :return: Future that can be used to manage the background websocket
                   subscription.
          :rtype: .TimeSubscription