Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


How to create a new time instance in Ruby?



How to create a new time instance in Ruby?..

Answer / Rakesh Chandra

"To create a new Time instance in Ruby, you can use the Time.new method or Time.at method.nnTime.new creates a new instance of Time with the current date and time, while Time.at takes a Unix timestamp as an argument."

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Ruby Interview Questions

How do the following methods differ: @my_string.strip and @my_string.strip! ?

1 Answers  


Please explain the three levels of access control for ruby methods?

1 Answers  


Explain retry statement in ruby.

1 Answers  


Ruby support single inheritance/multiple inheritance or both?

1 Answers  


Describe the environment variables present in Ruby?

1 Answers  


Which ruby interpreter option enables debugging?

1 Answers  


Tell me how would you freeze an object in ruby? Can you provide a simple example?

1 Answers  


Explain about the command line options?

1 Answers  


What is the difference between a statement and an expression in ruby?

1 Answers  


Explain me what the difference is between false and nil in ruby?

1 Answers  


what is class libraries in Ruby?

1 Answers  


Explain raise statement in Ruby?

1 Answers  


Categories