Skip to content

Instantly share code, notes, and snippets.

@kotp
Last active August 29, 2015 14:17
Show Gist options
  • Save kotp/210e00496fbb6efe4e93 to your computer and use it in GitHub Desktop.
Save kotp/210e00496fbb6efe4e93 to your computer and use it in GitHub Desktop.

Revisions

  1. kotp renamed this gist Mar 18, 2015. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  2. kotp created this gist Mar 18, 2015.
    6 changes: 6 additions & 0 deletions gistfile1.rb
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,6 @@
    require 'time'
    get_time = ->(t) { [t.iso8601, t.usec] }
    report = 'something to report with a detailed time: %s'
    puts report % get_time[Time.now]