perceval/backends/mozilla/remo.py
def metadata_updated_on(item):
        """Extracts the update time from a ReMo item.

        The timestamp is extracted from 'end' field.
        This date is converted to a perceval format using a float value.

        :param item: item generated by the backend

        :returns: a UNIX timestamp
        """
        if 'end' in item:
            # events updated field
            updated = item['end']
        elif 'date_joined_program' in item:
            # users updated field that always appear
            updated = item['date_joined_program']
        elif 'report_date' in item:
            # activities updated field
            updated = item['report_date']
        else:
            raise ValueError("Can't find updated field for item " + str(item))

        return float(str_to_datetime(updated).timestamp())
def metadata_updated_on(item):
        if 'end' in item:
            # events updated field
            updated = item['end']
        elif 'date_joined_program' in item:
            # users updated field that always appear
            updated = item['date_joined_program']
        elif 'report_date' in item:
            # activities updated field
            updated = item['report_date']
        else:
            raise ValueError("Can't find updated field for item " + str(item))

        return float(str_to_datetime(updated).timestamp())
def metadata_updated_on ( item ) : if 'end' in item : # events updated field updated = item [ 'end' ] elif 'date_joined_program' in item : # users updated field that always appear updated = item [ 'date_joined_program' ] elif 'report_date' in item : # activities updated field updated = item [ 'report_date' ] else : raise ValueError ( "Can't find updated field for item " + str ( item ) ) return float ( str_to_datetime ( updated ) . timestamp ( ) )
Extracts the update time from a ReMo item.

        The timestamp is extracted from 'end' field.
        This date is converted to a perceval format using a float value.

        :param item: item generated by the backend

        :returns: a UNIX timestamp
Extracts the update time from a ReMo item .