get date millis rails code example
Example: get date millis rails
require 'date'
DateTime.now.strftime('%s') # "1384526946" (seconds)
DateTime.now.strftime('%Q') # "1384526946523" (milliseconds)
require 'date'
DateTime.now.strftime('%s') # "1384526946" (seconds)
DateTime.now.strftime('%Q') # "1384526946523" (milliseconds)