The spec sheet (alldatasheet.com) says:
DESCRIPTION
The DS1287 Real Time Clock is designed to be a direct
replacement for the MC146818A. For a complete
description of operating conditions, electrical and
mechanical characteristics, bus timing, and pin descriptions
see the DS12887 data sheet.
----------------------------------------
Looks like the same to me.