Method: DateTime#to_json
- Defined in:
- lib/crazy_ivan/vendor/json-1.1.7/lib/json/add/core.rb
#to_json(*args) ⇒ Object
64 65 66 67 68 69 70 71 72 73 74 75 76 |
# File 'lib/crazy_ivan/vendor/json-1.1.7/lib/json/add/core.rb', line 64 def to_json(*args) { 'json_class' => self.class.name, 'y' => year, 'm' => month, 'd' => day, 'H' => hour, 'M' => min, 'S' => sec, 'of' => offset.to_s, 'sg' => start, }.to_json(*args) end |