Actions
Feature #10544
closedTime#to_i(:millisecond)
Feature #10544:
Time#to_i(:millisecond)
Status:
Rejected
Assignee:
-
Target version:
-
Description
Currently, we have to take an indirect way to get unix_time in milliseconds.
time = Time.now
milliseconds = (time.to_i * 1000) + (time.usec / 1000.0).round
I think it would be convenient if Time#to_i
accepts unit parameter like following.
time = Time.now
milliseconds = time.to_i(:millisecond)
Files
Actions