You can also change the time using the xset s [value] command, where [value] is the time in seconds. The default value is 600 ...
Sometimes, you don't have direct access to the Raspberry Pi running your project. Perhaps it's installed outdoors with no display and keyboard attached. Or maybe it was squeezed into a compact chassis ...