Sha256: da086523ba0226e11b00932a283351953cae794754d706c6da4ebb1228cf988b
Contents?: true
Size: 574 Bytes
Versions: 1
Compression:
Stored size: 574 Bytes
Contents
# -*- coding: utf-8 -*- =begin rdoc Please see README =end require 'date' class Date # @return [String] a date stamp string in standard format: "YYYY-MM-DD" # # This standard format is specified in IETF RFC 3339 and ISO 8601. # # @see http://www.ietf.org/rfc/rfc3339.txt # # @example # Date.now.stamp # => "2010-12-31" def stamp strftime('%Y-%m-%d') end # Shorthand for Date.today.stamp # # @example # Date.stamp # => "2010-12-31" # # @return [String] Date.today.stamp def self.stamp today.stamp end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
sixarm_ruby_date_stamp-1.1.0 | lib/sixarm_ruby_date_stamp.rb |