Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR RUBY

ruby current date and time

require 'date'
date_time = DateTime.now
curr_date_time = date_time.strftime "%d/%m/%Y  %H:%M:%S"
puts curr_date_time
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #ruby #current #date #time
ADD COMMENT
Topic
Name
8+4 =