```\nfunction \_setPeriod(uint64 \_period) internal {\n    require(\_period > 0, ERROR\_TIME\_PERIOD\_ZERO);\n    require(openDate == 0 || openDate + \_period > getTimestamp64(), ERROR\_INVALID\_TIME\_PERIOD);\n    period = \_period;\n}\n```\n