Sha256: 7689450c8d51081576fb307fc8be71eaced61bbcd836eee65babb6e17fa916c9
Contents?: true
Size: 485 Bytes
Versions: 4
Compression:
Stored size: 485 Bytes
Contents
# Add method to_ib to render datetime in IB format (zero padded "yyyymmdd HH:mm:ss") class Time def to_ib "#{year}#{sprintf("%02d", month)}#{sprintf("%02d", day)} " + "#{sprintf("%02d", hour)}:#{sprintf("%02d", min)}:#{sprintf("%02d", sec)}" end end # Time ### Patching Object#error in ib-ruby/errors # def error message, type=:standard ### Patching Object#log, #default_logger= in ib-ruby/logger # def default_logger # def default_logger= logger # def log *args
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
ib-ruby-0.7.4 | lib/ib-ruby/extensions.rb |
ib-ruby-0.7.3 | lib/ib-ruby/extensions.rb |
ib-ruby-0.7.2 | lib/ib-ruby/extensions.rb |
ib-ruby-0.7.0 | lib/ib-ruby/extensions.rb |