Time.at and @time.to_i
As I'm building a system which has to deal a lot with Time and Date and at a specific case it needs to be passed through an API. Although at my first attempt I used something like time.to_s, I figured out it could screw up the other side by having some space in it.
So instead of time.to_s, I tried time.to_i and when it gets consumed, I've changed back to time class using Time.at(lots-of-number-from-time-to_i) and eureka.
Hope to be helpful to you! :-)









