Class: Time
- Inherits:
-
Object
- Object
- Time
- Defined in:
- lib/time.rb
Instance Method Summary collapse
Instance Method Details
#to_xsd ⇒ Object
5 6 7 8 9 10 11 |
# File 'lib/time.rb', line 5 def to_xsd if self.utc? self.strftime("%Y-%m-%dT%H:%M:%S") else self.strftime("%Y-%m-%dT%H:%M:%S%z") end end |