How to use the umi-plugin-locale.formatTime function in umi-plugin-locale

To help you get started, we’ve selected a few umi-plugin-locale examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github umijs / umi / packages / umi-plugin-locale / examples / base / src / page / index.js View on Github external
>
        en-US
      
      <button> {
          setLocale('zh-CN');
        }}
      &gt;
        zh-CN
      </button>
      <br>
      
      <br>
      {`<b>`}</b> }} /&gt;
      <br>
      {`${formatDate(new Date())} ${formatTime(new Date())}`}
      <br>
      
    
  );
};