Skip to content

Instantly share code, notes, and snippets.

@tommorris
Created November 18, 2008 19:46
Show Gist options
  • Save tommorris/26235 to your computer and use it in GitHub Desktop.
Save tommorris/26235 to your computer and use it in GitHub Desktop.
a fun little Ruby time one-liner
puts "it's a wednesday or a thursday between 10am and 11pm" if [3,4].member?(Time.now.wday) && (10..22).member?(Time.now.hour)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment