Module prototypeslg :: Class GPSDATE
[hide private]
[frames] | no frames]

Class GPSDATE

source code

                  object --+        
                           |        
prototypes.BaseProtogenClass --+    
                               |    
              prototypes.UINTlsb --+
                                   |
                                  GPSDATE

Instance Methods [hide private]
 
__init__(self, *args, **kwargs)
A date/time as used in the LG call history files,
source code
 
_update(self, args, kwargs) source code
tuple
getvalue(self)
Convert 32 bit value into date/time
source code
 
_converttoint(self, date) source code

Inherited from prototypes.UINTlsb: packetsize, readfrombuffer, writetobuffer

Inherited from prototypes.BaseProtogenClass: autologread, autologwrite, iscontainer, packetspan, update

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

Class Methods [hide private]
 
now(_) source code
Class Variables [hide private]
  _time_t_ofs = 315964800
  _counter = 0
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

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

source code 

A date/time as used in the LG call history files,

Parameters:
  • unique - (True/False, Optional) Ensure that each GSPDATE instance is unique.
  • raiseonbadvalue - (default False) raise ValueError if the GPSDATE value is bad.
Overrides: object.__init__

_update(self, args, kwargs)

source code 
Overrides: prototypes.BaseProtogenClass._update

getvalue(self)

source code 

Convert 32 bit value into date/time

Returns: tuple
(year, month, day, hour, minute, sec)
Overrides: prototypes.BaseProtogenClass.getvalue