Class: Time

Inherits:
Object show all
Defined in:
vendor/bundler/ruby/2.5.0/bundler/gems/sxp.rb-a4c21f2e7eec/lib/sxp/writer.rb

Overview

Extensions for Ruby's Time class.

Instance Method Summary collapse

Instance Method Details

#to_sxpString

Returns the SXP representation of this object.

Returns:



136
137
138
# File 'vendor/bundler/ruby/2.5.0/bundler/gems/sxp.rb-a4c21f2e7eec/lib/sxp/writer.rb', line 136

def to_sxp
  '#@' << (respond_to?(:xmlschema) ? xmlschema : to_i).to_s
end