Time.now

C

Casimir

What units does it output - with .to_f or .to_i?

Doesn't seem to be milliseconds. I could be wrong. Ruby-doc dogged me.
Google said Jack Ruby was writing letters to his brother Earl and
suggested japanese. :D

I yam confused. Whats a good reference for this?

Thanks
Csmr
 
H

hemant

What units does it output - with .to_f or .to_i?

Doesn't seem to be milliseconds. I could be wrong. Ruby-doc dogged me.
Google said Jack Ruby was writing letters to his brother Earl and
suggested japanese. :D

I yam confused. Whats a good reference for this?
Dunno, but ri on my machine says:

for to_f:
Returns the value of _time_ as a floating point number of seconds
since epoch.

for to_i:
Returns the value of _time_ as a floating point number of seconds
since epoch.

Hope, that answers your question.


--
Let them talk of their oriental summer climes of everlasting
conservatories; give me the privilege of making my own summer with my
own coals.

http://gnufied.org
 
H

hemant

Dunno, but ri on my machine says:

for to_f:
Returns the value of _time_ as a floating point number of seconds
since epoch.

for to_i:
Returns the value of _time_ as a floating point number of seconds
since epoch.

Hope, that answers your question.
Oops my bad, I pasted the same thing twice. Sincere apologies,
although i hope you get the point nonetheless.

--
Let them talk of their oriental summer climes of everlasting
conservatories; give me the privilege of making my own summer with my
own coals.

http://gnufied.org


--
Let them talk of their oriental summer climes of everlasting
conservatories; give me the privilege of making my own summer with my
own coals.

http://gnufied.org
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,269
Messages
2,571,338
Members
48,027
Latest member
MeaganThur

Latest Threads

Top