Class: Time

Inherits:
Object show all
Defined in:
lib/sxp/extensions.rb

Overview

Extensions for Ruby’s ‘Time` class.

Instance Method Summary collapse

Instance Method Details

#to_sxp(**options) ⇒ String

Returns the SXP representation of this object.

Returns:



201
202
203
# File 'lib/sxp/extensions.rb', line 201

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