Module prototypes :: Class SMSDATE
[hide private]
[frames] | no frames]

Class SMSDATE

source code

       object --+    
                |    
BaseProtogenClass --+
                    |
                   SMSDATE

A date as used in SMS messages. It is six bytes long with the bytes being year month day hour minute second. From stuff on the web, it appears GSM phones swap each nybble.

Instance Methods [hide private]
 
__init__(self, *args, **kwargs)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
_update(self, args, kwargs) source code
 
readfrombuffer(self, buf)
Get our value from the buffer
source code
 
getvalue(self)
Returns the ISO date time string we are
source code

Inherited from BaseProtogenClass: autologread, autologwrite, iscontainer, packetsize, packetspan, update, writetobuffer

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, *args, **kwargs)
(Constructor)

source code 

x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Parameters:
  • sizeinbytes - (optional) Must be six
Overrides: object.__init__

_update(self, args, kwargs)

source code 
Overrides: BaseProtogenClass._update

readfrombuffer(self, buf)

source code 

Get our value from the buffer

Overrides: BaseProtogenClass.readfrombuffer
(inherited documentation)

getvalue(self)

source code 

Returns the ISO date time string we are

Overrides: BaseProtogenClass.getvalue