code: async function initTime({ log }) {
    log('debug', 'Time service initialized.');
  
    return time;
  
    /**
     * Returns the current timestamp
     * @return {number}   The current timestamp
     * @example
     * time()
     * // Prints: 1326585600000
     */
    function time() {
      const now = Date.now();
  
      log('debug', 'Picked a timestamp:', now);
      return now;
    }
  }
docs: Instantiate the time service
  @param  {Object}   services           The services to inject
  @param  {Object}   [services.log = noop]     A logging function
  @return {Promise<Function>}           A promise of the time function
  @example
  import initTime from 'common-services/dist/time';
  
  const time = await initTime({
  log: console.log.bind(console),
  });