How to easily initialize a DateTime to today, but with a specific time?
d = DateTime.(??)
#desired resulting time => 09 April 2011 9:46 PM
Thanks for your answer @Vadim. I should have searched a bit harder.. I was able to do this:
DateTime.now.change(:hour => 21, :minute => 46)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With