Module: TimeCrisis::Support::Change::DateTime
- Defined in:
- lib/time_crisis/support/change.rb
Instance Method Summary collapse
Instance Method Details
#change(options = {}) ⇒ Object
78 79 80 81 82 83 84 85 86 87 88 89 |
# File 'lib/time_crisis/support/change.rb', line 78 def change(={}) ::DateTime.civil( [:year] || year, [:month] || month, [:day] || day, [:hour] || hour, [:min] || ([:hour] ? 0 : min), [:sec] || (([:hour] || [:min]) ? 0 : sec), [:offset] || offset, [:start] || start ) end |