Class: DateTime

Inherits:
Object show all
Defined in:
lib/toml/monkey_patch.rb

Instance Method Summary collapse

Instance Method Details

#to_toml(path = "") ⇒ Object



84
85
86
# File 'lib/toml/monkey_patch.rb', line 84

def to_toml(path = "")
  self.to_time.utc.strftime("%Y-%m-%dT%H:%M:%SZ")
end