Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
controls / lib / controls / time.rb
Size: Mime:
require 'controls'

module Controls
  module Time
    def self.example
      ISO8601.example
    end
    def self.reference; example; end

    module ISO8601
      def self.example(time=nil)
        time ||= Raw.example

        Clock::UTC.iso8601 time
      end
    end

    module Raw
      def self.example
        ::Time.utc(2000)
      end
    end
  end
end