Skip to content

Instantly share code, notes, and snippets.

@virtualstaticvoid
Created January 31, 2014 15:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save virtualstaticvoid/8734383 to your computer and use it in GitHub Desktop.
Save virtualstaticvoid/8734383 to your computer and use it in GitHub Desktop.
Adds `to_utc_ticks` to `Date`
class Date
def to_utc_ticks
Time.utc(self.year, self.month, self.day).to_i * 1000
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment