Skip to content

Instantly share code, notes, and snippets.

View OiYouYeahYou's full-sized avatar

Jason Allan OiYouYeahYou

View GitHub Profile

Keybase proof

I hereby claim:

  • I am oiyouyeahyou on github.
  • I am oiyouyeahyou (https://keybase.io/oiyouyeahyou) on keybase.
  • I have a public key whose fingerprint is 9F1E 5CD5 C730 5CE0 A124 9A87 8426 E12D 69D6 403F

To claim this, I am signing this object:

@OiYouYeahYou
OiYouYeahYou / command-get-fuzzy-time.html
Created November 23, 2016 12:54 — forked from marchawkins/command-get-fuzzy-time.html
Using javascript to retrieve a user's time, then convert it to a "fuzzy" value that sounds more conversational (ie. "half past two", "a quarter to seven", etc.). The 'time' is based on the user's system clock. For this test, click the **Get Time** button. The exact time will be displayed in the top field. The "fuzzy" time will be displayed below…
<div class="row">
<div class="col-md-2 col-sm-2 col-xs-2">
<p><button class="btn btn-primary btn-sm" id="get-time-btn"><span>Get Time</span></button></p>
</div><!-- .col -->
<div class="col-md-10 col-sm-10 col-xs-10">
<div class="panel panel-default">
<div class="panel-heading">Response Status</div>
<div class="panel-body">
<p>Exact time: <input id="exact-time" type="text" class="form-control"/></p>
<p>Fuzzy time: <textarea id="status" class="form-control"></textarea></p>