Making time index into seconds