Pummpcomm v2.1.4 Pummpcomm.DateDecoder View Source

Link to this section Summary

Functions

decodes a cgm timestamp binary whose format is described in the following table

This function decodes a full date and time as returned by the ReadTime command

decodes a history page short timestamp (date only) whose format is described in the following table

Link to this section Functions

Link to this function decode_cgm_timestamp(timestamp) View Source

decodes a cgm timestamp binary whose format is described in the following table:

+========================================================================+ | BYTE 0 | | 1 | | 2 | | 3 | | MONTH HIGH | HOUR | MONTH LOW | MINUTE | FLAGS | DAY | 2000 + YEAR |

  • —————-+————+—————-+————+———-+———-+——————-+ | xx | 0xxxxx | xx | xxxxxx | xxx | xxxxx | 0xxxxxxx | +========================================================================+
Link to this function decode_full_datetime(arg) View Source

This function decodes a full date and time as returned by the ReadTime command

Link to this function decode_history_timestamp(arg) View Source

decodes a history page short timestamp (date only) whose format is described in the following table:

+===========================================+ | BYTE 0 | | 1 | | | MONTH HIGH | DAY | MONTH LOW | YEAR |

  • —————-+————+—————-+————-+ | xxx | xxxxx | x | xxxxxxx | +===========================================+