parameters: (b)
return_statement: return Timestamp(seconds, nanoseconds)
docstring: Unpack bytes into a `Timestamp` object.
  
          Used for pure-Python msgpack unpacking.
  
          :param b: Payload from msgpack ext message with code -1
          :type b: bytes
  
          :returns: Timestamp object unpacked from msgpack ext payload
          :rtype: Timestamp
docstring_summary: Unpack bytes into a `Timestamp` object.
docstring_tokens: Unpack bytes into a Timestamp object .
function: def from_bytes(b):
          """Unpack bytes into a `Timestamp` object.
  
          Used for pure-Python msgpack unpacking.
  
          :param b: Payload from msgpack ext message with code -1
          :type b: bytes
  
          :returns: Timestamp object unpacked from msgpack ext payload
          :rtype: Timestamp
          """
          if len(b) == 4:
              seconds = struct.unpack("!L", b)[0]
              nanoseconds = 0
          elif len(b) == 8:
              data64 = struct.unpack("!Q", b)[0]
              seconds = data64 & 0x00000003FFFFFFFF
              nanoseconds = data64 >> 34
          elif len(b) == 12:
              nanoseconds, seconds = struct.unpack("!Iq", b)
          else:
              raise ValueError(
                  "Timestamp type can only be created from 32, 64, or 96-bit byte objects"
              )
          return Timestamp(seconds, nanoseconds)
function_tokens: def from_bytes ( b ) : if len ( b ) == 4 : seconds = struct . unpack ( "!L" , b ) [ 0 ] nanoseconds = 0 elif len ( b ) == 8 : data64 = struct . unpack ( "!Q" , b ) [ 0 ] seconds = data64 & 0x00000003FFFFFFFF nanoseconds = data64 >> 34 elif len ( b ) == 12 : nanoseconds , seconds = struct . unpack ( "!Iq" , b ) else : raise ValueError ( "Timestamp type can only be created from 32, 64, or 96-bit byte objects" ) return Timestamp ( seconds , nanoseconds )