Sha256: f7791f5f17ce803ad1e73434d01dd72b65071a9311cd3c80187b50463ff1f712

Contents?: true

Size: 154 Bytes

Versions: 5

Compression:

Stored size: 154 Bytes

Contents

# frozen_string_literal: true

DateTime.class_eval do
  # @return [String] yyyy-mm-ddThh:mm:ss+hhmm
  def google_format
    strftime('%FT%T%z')
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
google_format_extension-1.0.0 lib/google_format_extension.rb
google_format_extension-1.0.0.pre.rc.1 lib/google_format_extension.rb
google_format_extension-0.0.5 lib/google_format_extension.rb
google_format_extension-0.0.4 lib/google_format_extension.rb
google_format_extension-0.0.3 lib/google_format_extension.rb