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

Describe class libraries in Ruby?

1 Answers  


Explain me what is the difference between symbol and string?

1 Answers  


What is request.xhr?

1 Answers  


Difference between render and redirect?

1 Answers  


Tell me how can we define ruby regular expressions?

1 Answers  


Tell me what is the difference between calling super and calling super()?

1 Answers  


Tell me the role of modules and mixins in ruby?

0 Answers  


What are the object-oriented programming features supported by ruby?

1 Answers  


How do you remove nil values in array using ruby?

1 Answers  


How would you freeze an object in ruby?

1 Answers  


How to use sql db or mysql db. Without defining it in the database.yml

1 Answers  


Tell us what is class libraries in ruby?

1 Answers  


Categories