Class: Time

Inherits:
Object
  • Object
show all
Defined in:
lib/flox/utils.rb

Overview

Flox-extensions to the standard Time class.

Instance Method Summary collapse

Instance Method Details

#to_xs_datetimeString

Returns an XS-DateTime representation of the string, like this: 2014-02-20T20:15:00.123Z.

Returns:

  • (String)

    an XS-DateTime representation of the string, like this: 2014-02-20T20:15:00.123Z



12
13
14
# File 'lib/flox/utils.rb', line 12

def to_xs_datetime
  strftime("%Y-%m-%dT%H:%M:%S.%LZ")
end