A time processing method and apparatus
By converting the target time data type in the software code to a preset time data type and using NTP timestamps to determine the current time for time synchronization, the problem of the software not working properly after 2038 was solved, and the normal operation and time extension of the software were achieved.
Patent Information
- Application Number
- CN202310026519.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-01-09
- Publication Date
- 2025-10-28
- Estimated Expiration
- 2043-01-09
AI Technical Summary
In existing technologies, the software will not function properly after 2038, and time rollover issues will occur when using the Network Time Protocol (NTP), preventing the software's lifespan from being extended.
The target time data type in the software code is converted to a preset time data type, the Network Time Protocol (NTP) timestamp is obtained, and it is compared with the preset time to determine the current time. The application system is then synchronized with the current time.
This avoids modifications to the data structure, resolves the issue of the software failing to function properly after 2038, and avoids time processing problems caused by NTP time flipping, enabling the software to run normally and extending its lifespan.
Smart Images

Figure CN116149426B_ABST