def _days_to_seconds(cls, val, **kwargs):
        '''
        converts a number of days to seconds
        '''
        zero_value = kwargs.get('zero_value', 0)
        if val is not None:
            if val == 0:
                return zero_value
            return val * 86400
        else:
            return 'Not Defined'
def _days_to_seconds ( cls , val , ** kwargs ) : zero_value = kwargs . get ( 'zero_value' , 0 ) if val is not None : if val == 0 : return zero_value return val * 86400 else : return 'Not Defined'
converts a number of days to seconds