How do I get a Time for today at a specific hour?


#1

I’m using Time Zones – and would like to get a time for today at 3 am?

Is there something available like this?

Time.zone.now.parse(‘03:00:00’)


#2

ok – i think i’ve got it …

Time.zone.now + 3.hours

Rich S. wrote:

I’m using Time Zones – and would like to get a time for today at 3 am?

Is there something available like this?

Time.zone.now.parse(‘03:00:00’)


#3

opps – my bad …

Time.zone.today + 3.hours