method
to_json
v1_9_2_180 -
Show latest stable
- Class:
DateTime
to_json(*args)public
No documentation available.
# File ext/json/lib/json/add/core.rb, line 77
def to_json(*args)
{
JSON.create_id => 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