Class: Time

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

Overview

Extensions for Ruby's Time class.

Instance Method Summary (collapse)

Instance Method Details

- (String) to_sxp

Returns the SXP representation of this object.

Returns:



120
121
122
# File 'lib/sxp/writer.rb', line 120

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