Check the alarm label and manual for the manufacture date and replacement instructions. If access requires removing a wired unit, have the building manager or installer check it.
The U.S. Fire Administration recommends replacing smoke alarms ten years from manufacture. Write the date beside the alarm location so the next check is easy.
For a rental, ask: “Could you check the manufacture date on the hallway alarm and arrange replacement if it is due?” Reference: U.S. Fire Administration