Sha256: 9c82ec999d1234359937bf8bb042dfbda53e9dfb80cbe1c31d89aa5b2e009840

Contents?: true

Size: 203 Bytes

Versions: 3

Compression:

Stored size: 203 Bytes

Contents

module Pcap
  module TcpdumpTimeFormat
    # tcpdump style format
    def tcpdump
      sprintf "%0.2d:%0.2d:%0.2d.%0.6d", hour, min, sec, tv_usec
    end
  end
end

Time.include Pcap::TcpdumpTimeFormat

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
ruby-pcap-0.8.1 lib/pcap/tcpdump_time_format.rb
ruby-pcap-0.8.0 lib/pcap/tcpdump_time_format.rb
ruby-pcap-0.7.9 lib/pcap/tcpdump_time_format.rb