Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
tools:unicode_time [2019-03-09 12:22]
jbergamini@jeff.cis.cabrillo.edu
tools:unicode_time [2019-03-09 12:28] (current)
jbergamini@jeff.cis.cabrillo.edu
Line 13: Line 13:
   let codePoint = timeString.codePointAt(0);   let codePoint = timeString.codePointAt(0);
   document.getElementById('unicode-time').innerText = timeString;   document.getElementById('unicode-time').innerText = timeString;
-  document.getElementById('epoch-time').innerHTML = `(<code>0x${sinceEpoch.toString(16)}</code> seconds since the Unix epoch <code>% ${unicodeMax.toString(16)}</code> gets us <code>0x${(sinceEpoch % unicodeMax ).toString(16)} &rarr; ${codePoint.toString(16)}</code>)`;+  document.getElementById('epoch-time').innerHTML = `(<code>0x${sinceEpoch.toString(16)}</code> seconds since the Unix epoch <code>% ${unicodeMax.toString(16)}</code> gets us <code>0x${(sinceEpoch % unicodeMax ).toString(16)} &rarr; 0x${codePoint.toString(16)}</code>)`;
      
   window.fetch(`/util/unicode?codepoint=${codePoint}`, {   window.fetch(`/util/unicode?codepoint=${codePoint}`, {
 
tools/unicode_time.txt · Last modified: 2019-03-09 12:28 by jbergamini@jeff.cis.cabrillo.edu · []
Recent changes RSS feed Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki