Logo

Programming-Idioms

History of Idiom 61 > diff from v19 to v20

Edit summary for version 20 by :

Version 19

2015-09-03, 16:18:34

Version 20

2015-09-03, 16:18:48

Idiom #61 Get current date

Assign to variable d the current date/time value, in the most standard type.

Idiom #61 Get current date

Assign to variable d the current date/time value, in the most standard type.

Code
Time.now
Code
d = Time.now
Doc URL
http://ruby-doc.org/core-2.2.3/Time.html
Doc URL
http://ruby-doc.org/core-2.2.3/Time.html