Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

15 lines (13 sloc) 0.236 kb
class Time
def to_json(*a)
{
'json_class' => self.class.name,
'data' => self.strftime("%Y/%m/%d %H:%M:%S %z")
}.to_json(*a)
end
end
class Time
def self.json_create(o)
parse(*o['data'])
end
end
Jump to Line
Something went wrong with that request. Please try again.