Next / Previous / Contents / Shipman's homepage

65.2. HHMField.flatten()

Flattens a time in HHM format.

baseclasses.py
# - - -   H H M F i e l d . f l a t t e n   - - -

    @staticmethod
    def flatten(hhmField):
        '''Flattens an HHMField instance, if any.
        '''
        if  hhmField is None:
            return BLANK_HHM
        else:
            return hhmField.value