Sha256: b70a9a44c9832762af9400831e9a694f4fef69b146d89a9dc26d54e059a3b9f5

Contents?: true

Size: 173 Bytes

Versions: 16

Compression:

Stored size: 173 Bytes

Contents

module Google
  module Protobuf
    class Timestamp
      def to_datetime
        micros = self.nanos / 10 ** 3
        Time.at(seconds, micros)
      end
    end
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
workstream_protocol-0.8.1 lib/workstream_protocol/utils/timestamp.rb
workstream_protocol-0.8.0 lib/workstream_protocol/utils/timestamp.rb
workstream_protocol-0.7.2 lib/workstream_protocol/utils/timestamp.rb
workstream_protocol-0.7.1 lib/workstream_protocol/utils/timestamp.rb
workstream_protocol-0.6.0 lib/workstream_protocol/utils/timestamp.rb
workstream_protocol-0.5.3 lib/workstream_protocol/utils/timestamp.rb
workstream_protocol-0.5.2 lib/workstream_protocol/utils/timestamp.rb
workstream_protocol-0.5.1 lib/workstream_protocol/utils/timestamp.rb
workstream_protocol-0.5.0 lib/workstream_protocol/utils/timestamp.rb
workstream_protocol-0.4.1 lib/workstream_protocol/utils/timestamp.rb
workstream_protocol-0.4.0 lib/workstream_protocol/utils/timestamp.rb
workstream_protocol-0.3.6 lib/workstream_protocol/utils/timestamp.rb
workstream_protocol-0.3.4 lib/workstream_protocol/utils/timestamp.rb
workstream_protocol-0.3.2 lib/workstream_protocol/utils/timestamp.rb
workstream_protocol-0.3.0 lib/workstream_protocol/utils/timestamp.rb
workstream_protocol-0.2.2 lib/workstream_protocol/utils/timestamp.rb