Guest User

Untitled

a guest
Jun 19th, 2018
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.17 KB | None | 0 0
  1. # Install the gem, then
  2. require 'v8'
  3. cxt = V8::Context.new
  4. cxt["effectiveTime"] = Time.gm(2010, 9, 19).to_i
  5. cxt.eval("effectiveTime - (365 * 24 * 60 * 60)") #=> 1253318400
Add Comment
Please, Sign In to add comment