diameter.AVP_Time

 

Classes
       
diameter.AVP_Unsigned32.AVP_Unsigned32(diameter.AVP.AVP)
AVP_Time

class AVP_Time(diameter.AVP_Unsigned32.AVP_Unsigned32)
    A timestamp AVP.
AVP_Time contains a second count since 1900. You can get the raw second
count using AVP_Unsigned32.queryValue but this class' method
querySecondsSince1970() is probably more useful in your program.
 
Diameter does not have any base AVPs (RFC3588) with finer granularity
than seconds.
 
 
Method resolution order:
AVP_Time
diameter.AVP_Unsigned32.AVP_Unsigned32
diameter.AVP.AVP

Methods defined here:
__init__(self, code, seconds_since_1970, vendor_id=0)
__str__(self)
querySecondsSince1970(self)
setSecondsSince1970(self, seconds_since_1970)

Static methods defined here:
narrow(avp)
Convert generic AVP to AVP_Float64
Raises: InvalidAVPLengthError

Data and other attributes defined here:
seconds_between_1900_and_1970 = 2208988800

Methods inherited from diameter.AVP_Unsigned32.AVP_Unsigned32:
queryValue(self)
Returns the payload as a 32-bit unsigned value.
setValue(self, value)
Sets the payload to the specified 32-bit unsigned value.

Methods inherited from diameter.AVP.AVP:
decode(self, unpacker, bytes)
encode(self, packer)
encodeSize(self)
isMandatory(self)
Returns if the mandatory (M) flag is set
isPrivate(self)
Returns if the private (P) flag is set
isVendorSpecific(self)
Returns if the AVP is vendor-specific (has non-zero vendor_id)
setM(self)
Sets the M-bit and returns the instance
setMandatory(self, f)
Sets/unsets the mandatory (M) flag
setPrivate(self, f)
Sets/unsets the private (P) flag
str_prefix__(self)
Return a string prefix suitable for building a __str__ result

Static methods inherited from diameter.AVP.AVP:
decodeSize(unpacker, bytes)

Data and other attributes inherited from diameter.AVP.AVP:
avp_flag_mandatory = 64
avp_flag_private = 32
avp_flag_vendor = 128

Functions
       
calcsize(...)
Return size of C struct described by format string fmt.
pack(...)
Return string containing values v1, v2, ... packed according to fmt.
pack_into(...)
Pack the values v1, v2, ... according to fmt.
Write the packed bytes into the writable buffer buf starting at offset.
unpack(...)
Unpack the string containing packed C structure data, according to fmt.
Requires len(string) == calcsize(fmt).
unpack_from(...)
Unpack the buffer, containing packed C structure data, according to
fmt, starting at offset. Requires len(buffer[offset:]) >= calcsize(fmt).

Data
        __package__ = 'diameter'