Commit 403b9532 authored by David Schnur's avatar David Schnur

Fix line wrapping and grammar.

parent bdd9ceb9
...@@ -574,9 +574,11 @@ In Python you can get it with something like: ...@@ -574,9 +574,11 @@ In Python you can get it with something like:
```python ```python
calendar.timegm(datetime_object.timetuple()) * 1000 calendar.timegm(datetime_object.timetuple()) * 1000
``` ```
In Ruby you can get it using `#to_i` method on [`Time`](http://apidock.com/ruby/Time/to_i) object. In Ruby you can get it using the `#to_i` method on the
If you're using `active_support` gem (default for Ruby on Rails application) `#to_i` is also available on `DateTime` and `ActiveSupport::TimeWithZone` objects. [`Time`](http://apidock.com/ruby/Time/to_i) object. If you're using the
After that multiply the result by 1000: `active_support` gem (default for Ruby on Rails applications) `#to_i` is also
available on the `DateTime` and `ActiveSupport::TimeWithZone` objects. You
simply need to multiply the result by 1000:
```ruby ```ruby
Time.now.to_i * 1000 # => 1383582043000 Time.now.to_i * 1000 # => 1383582043000
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment