Skip to content

Instantly share code, notes, and snippets.

@ahoward
Created January 9, 2009 17:36
Show Gist options
  • Save ahoward/45191 to your computer and use it in GitHub Desktop.
Save ahoward/45191 to your computer and use it in GitHub Desktop.
# use date based backups instead of revision # based backups
#
def get_build_number
require 'time'
Time.now.iso8601(2).gsub(%r/[^\d]/,'')
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment