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’)
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’)
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’)
opps – my bad …
Time.zone.today + 3.hours
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs