A Time Management Method Based on Web Browser
A technology of time management and WEB server, applied in the transmission system, electrical components, etc., can solve the problems of large time deviation of terminal equipment, inability to monitor the time deviation of terminal equipment, and low timing accuracy, so as to ensure accuracy and multi-department linkage The effect of coordination
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0038] The invention discloses a time management method based on a WEB browser, which implements time synchronization with millisecond-level accuracy, time deviation monitoring, event time stamp recording and query for distributed deployment terminals based on general WEB browsers such as IE, chome, and firefox and other time management functions.
[0039] This embodiment discloses a time management method based on a WEB browser, and the following steps are performed on the client side, such as figure 1 Shown:
[0040] The time synchronization process is executed at several moments after the WEB browser is started.
[0041] In this embodiment, the client starts a common WEB browser such as IE, chome, and firefox, and executes a time synchronization process at several moments after the WEB browser is started. In this embodiment, a time synchronization process is performed with the WEB server at 0 seconds, 5 seconds, 10 seconds and 30 seconds after the WEB browser is started, ...
Embodiment 2
[0051] On the basis of Embodiment 1, this embodiment further discloses specific steps for the WEB browser on the client side to execute the time synchronization process, such as figure 2 As shown, it specifically includes the following steps:
[0052] Step S31, the WEB browser reads the value of the time difference variable recorded in the local COOKIE. If the time difference variable does not exist in the local COOKIE, a new time difference variable is created in the local COOKIE, and the initial value of the time difference variable is zero.
[0053] In this embodiment, the client saves the difference between the time of the local system and the time of the WEB server, that is, the value of the so-called time difference variable, in the local COOKIE, and the WEB browser can easily read the local COOKIE through the JavaScript script The value of the time difference variable recorded in .
[0054] The value of the time difference variable recorded in the cookie is the value ...
Embodiment 3
[0070] According to the time management method based on the WEB browser of the present invention, the WEB browser of the client can synchronize the time of the client with the time of the WEB server with high precision, and can display the synchronized time of the client in real time in the WEB browser of the client.
[0071] This embodiment further discloses the specific steps that the client WEB browser uses the first time as a cycle to update and display the time after synchronization, such as image 3 shown.
[0072] In this embodiment, the client WEB browser executes the following steps in a cycle of 10 milliseconds:
[0073] In step S51, the WEB browser reads the value of the time difference variable recorded in the local COOKIE. If the time difference variable does not exist in the local COOKIE, a new time difference variable is created in the local COOKIE, and an initial value of zero is assigned to the time difference variable.
[0074] After the client web browser e...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com