I don't see how that's relevant. It works on much longer time frames, and in particular, only comes into play when someone else tries to claim the property in question. If the property is merely unoccupied, no one will ever know. Implementing this law will require regularly inspecting all properties in the city to see if they are indeed occupied (and how would you tell the difference between a furnished/staged unoccupied apartment and one that is occupied?).
Also, good luck squatting in a modern apartment building. You won't be able to get a keycard to even get inside the building.