[go: up one dir, main page]

CN104426644A - Equipment time synchronization method and device - Google Patents

Equipment time synchronization method and device Download PDF

Info

Publication number
CN104426644A
CN104426644A CN201310367238.3A CN201310367238A CN104426644A CN 104426644 A CN104426644 A CN 104426644A CN 201310367238 A CN201310367238 A CN 201310367238A CN 104426644 A CN104426644 A CN 104426644A
Authority
CN
China
Prior art keywords
time
client device
daylight
information
server device
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201310367238.3A
Other languages
Chinese (zh)
Inventor
沈青春
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN201310367238.3A priority Critical patent/CN104426644A/en
Publication of CN104426644A publication Critical patent/CN104426644A/en
Pending legal-status Critical Current

Links

Landscapes

  • Computer And Data Communications (AREA)

Abstract

The embodiments of the invention disclose an equipment time synchronization method and device. The method comprises the following steps: a service-end device receiving time reference information on a client device, which is sent by the client device, wherein the client device and the service-end device are disposed at different time zones; and when the service-end device carries out a conversation with the client device, according to the time reference information, synchronizing the local time information of the service-end device. Through the embodiments of the invention, time synchronization between devices in the different time zones can be realized.

Description

A kind of equipment method for synchronizing time and equipment
Technical field
The present invention relates to communication technical field, particularly relate to a kind of equipment method for synchronizing time and equipment.
Background technology
At communication technical field, along with user's (comprising terminal use and operator etc.) requirement to localization is more and more higher, the localization of product to have become in product development an important link, the client of product and service end not only will support single area to dispose and access, also need to support trans-regional deployment and access.
When the position of service end and client deployment belongs to different time zones, each client is when submission time information is to service end, need to convert the time reference unified with service end to, i.e. time in time zone, service end place or UTC(Coordinated Universal Time, universal time or world concordant time).In like manner, when temporal information is pushed to the display of each client by service end, the local zone time converting each client according to the time zone at each client place to is needed.
Implement the region of daylight-saving time in some region, e.g., Europe or the U.S., above-mentioned conversion needs the rule considering the daylight-saving time.Usually, rule is built in server device and client device operation system or underlying platform the daylight-saving time.Find in practical application, the daylight-saving time Policy Updates frequency of client and service end may there are differences, when client and service end daylight-saving time rule exist inconsistent be situation time, will cause the time between client and service end change there is mistake.
For the typical products of browser/server (Browser/Server, B/S) structure, under this application structure, browser is as client, and service end is normally based on the application platform of Java.In such a scenario, the daylight-saving time rule be built in respectively in the Java Virtual Machine of client operating system and service end.The Java Virtual Machine version of service end, once determine, generally can not upgrade, and therefore, corresponding daylight-saving time rule also can not upgrade.And client browser may operate in the system of various isomery, such as: Mobile operating system, Windows XP, Windows VISTA, Windows7 etc., the situation that daylight-saving time rule is inconsistent is probably there is in what client was run between these system and Java Virtual Machines of service end, time conversion between client and service end is caused to occur mistake, thus the true(-)running of influential system.
Summary of the invention
Provide a kind of equipment method for synchronizing time and equipment in the embodiment of the present invention, realize the time synchronized be between the equipment of different time zone.
In order to solve the problems of the technologies described above, the embodiment of the invention discloses following technical scheme:
First aspect, provides a kind of equipment method for synchronizing time, comprising:
Server device receives the time reference information on the described client device of client device transmission, and wherein, described client device and described server device are in different time zone;
Described server device when conversating with described client device, server device local time information according to described time reference synchronizing information.
In conjunction with above-mentioned first aspect, in the implementation that the first is possible, also comprise:
Described server device sends session data to described client device, carry the temporal information of described server device in described session data, the temporal information of described server device is the temporal information of described client device according to described time reference synchronizing information.
In conjunction with one side face, in the implementation that the second is possible, described time reference information is daylight-saving time reference information, and wherein, daylight-saving time reference information comprises: privacy cm time zone offset privacy CM, time zone identify, the daylight-saving time is initial and ending message;
Described server device, according to described time reference synchronizing information local time information, comprising:
Described server device sets up the time zone object of corresponding described client device according to described daylight-saving time reference information, and described time zone object comprises the daylight-saving time reference information in time zone residing for described client device;
Described server device, according to described time zone object, sets up the daylight-saving time temporal information of corresponding described client device, and the daylight-saving time temporal information of the described client device of described correspondence adjusts according to described daylight-saving time benchmark.
In conjunction with above-mentioned first aspect, the implementation possible with the second, in the implementation that the third is possible, described server device sends session data to described client device, the temporal information of described server device is carried in described session data, the temporal information of described server device is the temporal information of described client device according to described time reference synchronizing information, comprising:
When conversating with described client device, described server device obtains the time zone object of corresponding described client device, according to described time zone object, described server device is set up the daylight-saving time temporal information of respective session;
Described server device sends session data to described client device, carries daylight-saving time temporal information when described session occurs in described session data.
Second aspect, provides a kind of server device, comprising:
Benchmark receiver module, the time reference information on the described client device receiving client device transmission, and described time reference information is sent to synchronization module, wherein, described client device and described server device are in different time zone;
Described synchronization module, for receiving the described time reference information that described benchmark receiver module sends, when conversating with described client device, server device local time information according to described time reference synchronizing information.
In conjunction with above-mentioned second aspect, in the implementation that the first is possible, also comprise:
Session sending module, for sending session data to described client device, carry the temporal information of described server device in described session data, the temporal information of described server device is the temporal information of described client device according to described time reference synchronizing information.
In conjunction with above-mentioned second aspect, in the implementation that the second is possible, described time reference information is daylight-saving time reference information, and wherein, daylight-saving time reference information comprises: privacy cm time zone offset privacy CM, time zone identify, the daylight-saving time is initial and ending message;
Described synchronization module, comprising:
Time zone object sets up unit, for setting up the time zone object of corresponding described client device according to described daylight-saving time reference information, and described time zone object is sent to daylight-saving time time quantum, described time zone object comprises the daylight-saving time reference information in time zone residing for described client device;
Described daylight-saving time time quantum, the described time zone object of unit transmission is set up for receiving described time zone object, according to described time zone object, set up the daylight-saving time temporal information of corresponding described client device, the daylight-saving time temporal information of the described client device of described correspondence adjusts according to described daylight-saving time benchmark.
In conjunction with above-mentioned second aspect, and the implementation that the second is possible, in the implementation that the third is possible, described session sending module, comprising:
Time zone object acquisition unit, for when conversating with described client device, obtain the time zone object of corresponding described client device, according to described time zone object, set up daylight-saving time temporal information when respective session occurs, and daylight-saving time temporal information when described session being occurred is sent to transmitting element;
Described transmitting element, daylight-saving time temporal information when the described session sent for receiving described time zone object acquisition unit occurs, sends session data to described client device, carries daylight-saving time temporal information when described session occurs in described session data.
The third aspect, provides a kind of client device, comprising:
Benchmark sending module, for sending the time reference information on described client device to server device, wherein, described client device and described server device are in different time zone, make described server device when conversating with described client device, server device local time information according to described time reference synchronizing information;
Session receiver module, for receiving the session data that described server device sends, carry the temporal information of described server device in described session data, the temporal information of described server device is the temporal information of described client device according to described time reference synchronizing information.
In conjunction with the above-mentioned third aspect, in the implementation that the first is possible, described time reference information is daylight-saving time reference information, and wherein, daylight-saving time reference information comprises: privacy cm time zone offset privacy CM, time zone identify, the daylight-saving time is initial and ending message.
In the embodiment of the present invention, the client device conversated and server device are in different time zone, the time reference information on described client device is sent to server device, by described server device according to described time reference synchronizing information local time information by client device.Because client device and server device adopt identical time reference, thus, client device and server device both sides can carry synchronous temporal information when mutual transmission information, can avoid the time transcription error because time reference information difference causes.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, be briefly described to the accompanying drawing used required in embodiment or description of the prior art below, apparently, for those of ordinary skills, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
Fig. 1 is the flow chart of an equipment method for synchronizing time embodiment provided by the invention;
Fig. 2 is the flow chart of another equipment method for synchronizing time embodiment provided by the invention;
Fig. 3 is the realization flow figure of step 102 in Fig. 1;
Fig. 4 is the structured flowchart of a client device embodiment provided by the invention;
Fig. 5 is the structured flowchart of a server device embodiment provided by the invention;
Fig. 6 is the structured flowchart of another server device embodiment provided by the invention;
Fig. 7 be in Fig. 5 synchronization module realize block diagram;
Fig. 8 be in Fig. 5 session transmitter module realize block diagram;
Fig. 9 is the concrete structure block diagram of a server device embodiment provided by the invention.
Embodiment
Technical scheme in the embodiment of the present invention is understood better in order to make those skilled in the art person, and enable the above-mentioned purpose of the embodiment of the present invention, feature and advantage become apparent more, below in conjunction with accompanying drawing, technical scheme in the embodiment of the present invention is described in further detail.
First, introduce a kind of equipment method for synchronizing time provided by the invention, on the equipment that can be applied to B/S structure.
See Fig. 1, be the flow process of an equipment method for synchronizing time embodiment provided by the invention, specifically can comprise:
Step 101, server device receive the time reference information on the described client device of client device transmission, and wherein, described client device and described server device are in different time zone.
In the embodiment of the present invention, described client device and described server device are carried out in data transmission procedure, need to carry out time synchronized operation, that is: there is data message between client device and server device mutual, when server device sends session data to client device, the temporal information of carrying should to send to server device the temporal information that data carry consistent with client device, but, divide due to described client device and server device and be in different time zone, time reference in client device and server device is likely asynchronous, therefore, different temporal informations may be set respectively for same session between client device and server device.
In order to ensure the synchronous of temporal information between device clients equipment and server device, in this step, time reference information on described client device is sent to server device, so that described server device is according to time reference synchronizing information local time information on described client device by client device.
Step 102, described server device when conversating with described client device, server device local time information according to described time reference synchronizing information.
In this step, when described server device and described client device conversate, need according to described time reference synchronizing information local time information.
Described server device is by synchronous local temporal information, time reference in described server device and described client device are consistent, make described server device when receiving the session of described client device transmission or sending session to described client device, both devices keeps unified time reference.
Visible, in the embodiment of the present invention, the client device conversated and server device are in different time zone, the time reference information on described client device is sent to server device, by described server device according to described time reference synchronizing information local time information by client device.Because client device and server device adopt identical time reference, thus, client device and server device both sides can carry synchronous temporal information when mutual transmission information, can avoid the time transcription error because time reference information difference causes.
On the basis of above-described embodiment, when described server device needs to send session data to described client device, as shown in Figure 2, can also comprise the following steps:
Step 103, described server device send session data to described client device, carry the temporal information of described server device in described session data, the temporal information of described server device is the temporal information of described client device according to described time reference synchronizing information.
In step 103, when described server device sends session data to described client device, usually, the temporal information of described server device is carried in described session data, in the embodiment of the present invention, owing to server device storing the time reference information on described client device, therefore, can, before session sends, be the temporal information of described client device according to described time reference synchronizing information by the temporal information of the described server device of carrying in described session data.
In the embodiment of the present invention, after described client device obtains described session data, owing to carrying the temporal information synchronous with described client device in described session data, therefore, described client device, without the need to carrying out time conversion, can correctly obtain described session data.
Particularly, described time reference information can be daylight-saving time reference information.This is that client owing to being in different time zone and service end may be inconsistent for rule of respective daylight-saving time, whether the daylight-saving time performs, when to perform be all that every country specifies voluntarily, along with the change of time, regulation also may adjust, once daylight-saving time rule adjustment, client and service end may upgrade asynchronous, thus cause client device and server device different for the rule of daylight-saving time.
In the embodiment of the present invention, described daylight-saving time reference information specifically can comprise: privacy cm time zone offset privacy CM, time zone mark, daylight-saving time initial and ending message, initial and ending message of described daylight-saving time such as: the daylight-saving time starts the information such as month, Start Date daylight-saving time, time started daylight-saving time, end of daylight savings month, end of daylight savings date, end of daylight savings time.Except comprising time zone mark, privacy cm time zone offset privacy CM, by carrying other daylight-saving time reference information parameters, the accuracy of synchronous daylight-saving time temporal information between client device and server device can be improved.
Thus as shown in Figure 3, in above-mentioned steps 102, described server device is according to described time reference synchronizing information local time information, and this specific implementation can be:
Step 301, described server device set up the time zone object of corresponding described client device according to described daylight-saving time reference information, and described time zone object comprises the daylight-saving time reference information in time zone residing for described client device;
Step 302, described server device, according to described time zone object, set up the daylight-saving time temporal information of corresponding described client device, and the daylight-saving time temporal information of the described client device of described correspondence adjusts according to described daylight-saving time benchmark.
Usually, in B/S structure, same server device may set up communication connection with multiple client device simultaneously, and therefore, same service end can conversate with multiple client device simultaneously.In the embodiment of the present invention, when server device and multiple client device are in different time zone, if when each client device and this server device conversate, service end all need according to active client equipment send time reference synchronizing information described in server device local time information time, then when this server device conversates with multiple client device simultaneously, this server device cannot be known, and the time reference information that send with which client device is as the criterion, and makes the temporal information in this server device synchronously confusion occur.
In order to avoid this defect above-mentioned, state clearly in embodiment upper, described server device sets up the time zone object of corresponding described client device according to described daylight-saving time reference information, and described time zone object comprises the daylight-saving time reference information in time zone residing for described client device.In this implementation, be based upon time zone object in described server device and described client device for relation one to one.When existence is in multiple client device of different time zone, described server device is set up the time zone object of corresponding number.
Visible, after described server device receives the time reference information of some client devices transmission, can not directly adjust the temporal information of described server device self, but first set up the time zone object of corresponding described client device according to described daylight-saving time reference information, and carry the daylight-saving time reference information in time zone residing for described client device in the object of described time zone.Thus described server device, according to described time zone object, sets up the daylight-saving time temporal information of corresponding described client device, the daylight-saving time temporal information of the described client device of described correspondence adjusts according to described daylight-saving time benchmark.In described server device, multiple client devices of corresponding different time zone, set up the daylight-saving time temporal information corresponding with client device respectively, make described server device synchronous with multiple client device retention time respectively.
When described server device needs to send session data to some client devices, described server device needs the time zone object first obtaining corresponding described client device, then, according to described time zone object, described server device is set up the daylight-saving time temporal information of respective session; The daylight-saving time temporal information of respective session can comprise: described server device sends temporal information during this session.Afterwards, namely described server device sends session data to described client device, carries daylight-saving time temporal information when described session occurs in described session data.
In above-mentioned implementation, because daylight-saving time temporal information when described session occurs is carried out synchronously according to the daylight-saving time reference information of the client device of correspondence, therefore, described client device, without the need to carrying out time conversion, can correctly obtain described session data.
Corresponding with equipment method for synchronizing time embodiment provided by the invention, present invention also offers the corresponding equipment carrying out time synchronized, be respectively client device and server device.
As shown in Figure 4, be the embodiment of a client device provided by the invention, this client device and server device are divided and are in different time zone, specifically can comprise:
Benchmark sending module 401, for sending the time reference information on described client device to server device, wherein, described client device and described server device are in different time zone, make described server device when conversating with described client device, server device local time information according to described time reference synchronizing information;
Session receiver module 402, for receiving the session data that described server device sends, carry the temporal information of described server device in described session data, the temporal information of described server device is the temporal information of described client device according to described time reference synchronizing information.
In the embodiment of the present invention, when server device sends session data to client device, the temporal information of carrying should to send to server device the temporal information that data carry consistent with client device, but, divide due to described client device and server device and be in different time zone, time reference in client device and server device is likely asynchronous, therefore, different temporal informations may be set respectively for same session between client device and server device.
In the embodiment of the present invention, the client device conversated and server device are in different time zone, the time reference information on described client device is sent to server device, by described server device according to described time reference synchronizing information local time information by client device.Because client device and server device adopt identical time reference, thus, client device and server device both sides can carry synchronous temporal information when mutual transmission information, can avoid the time transcription error because time reference information difference causes.
In order to ensure the synchronous of temporal information between device clients equipment and server device, time reference information on described client device is sent by benchmark sending module to server device, so that described server device is according to time reference synchronizing information local time information on described client device by client device.
When described server device sends session letter to described client device, owing to server device storing the time reference information on described client device, therefore, can, before session sends, be the temporal information of described client device according to described time reference synchronizing information by the temporal information of the described server device of carrying in described session data.
Particularly, described time reference information can be daylight-saving time reference information.Described daylight-saving time reference information comprises: privacy cm time zone offset privacy CM, time zone mark, daylight-saving time initial and ending message, initial and ending message of described daylight-saving time such as: the daylight-saving time starts the information such as month, Start Date daylight-saving time, time started daylight-saving time, end of daylight savings month, end of daylight savings date, end of daylight savings time.
Correspondingly, present invention also offers a kind of embodiment of server device, as shown in Figure 5, this server device and client device divide and are in different time zone, specifically can comprise;
Benchmark receiver module 501, the time reference information on the described client device receiving client device transmission, and described time reference information is sent to synchronization module, wherein, described client device and described server device are in different time zone;
Described synchronization module 502, for receiving the described time reference information that described benchmark receiver module sends, when conversating with described client device, server device local time information according to described time reference synchronizing information.
In the embodiment of the present invention, the client device conversated and server device are in different time zone, the time reference information on described client device is sent to server device, by described server device according to described time reference synchronizing information local time information by client device.Because client device and server device adopt identical time reference, thus, client device and server device both sides can carry synchronous temporal information when mutual transmission information, can avoid the time transcription error because time reference information difference causes.
In the server device shown in Fig. 6, can also comprise:
Session sending module 503, for sending session data to described client device, carry the temporal information of described server device in described session data, the temporal information of described server device is the temporal information of described client device according to described time reference synchronizing information.
In this embodiment, when described server device sends session data to described client device, usually, the temporal information of described server device is carried in described session data, in the embodiment of the present invention, owing to server device storing the time reference information on described client device, therefore, can, before session sends, be the temporal information of described client device according to described time reference synchronizing information by the temporal information of the described server device of carrying in described session data.
In specific implementation process, particularly, described time reference information can be daylight-saving time reference information.Described daylight-saving time reference information comprises: privacy cm time zone offset privacy CM, time zone mark, daylight-saving time initial and ending message, initial and ending message of described daylight-saving time such as: the daylight-saving time starts the information such as month, Start Date daylight-saving time, time started daylight-saving time, end of daylight savings month, end of daylight savings date, end of daylight savings time.
In a preferred embodiment, as shown in Figure 7, described synchronization module 502, comprising:
Time zone object sets up unit 701, for setting up the time zone object of corresponding described client device according to described daylight-saving time reference information, and described time zone object is sent to daylight-saving time time quantum, described time zone object comprises the daylight-saving time reference information in time zone residing for described client device;
Described daylight-saving time time quantum 702, the described time zone object of unit transmission is set up for receiving described time zone object, according to described time zone object, set up the daylight-saving time temporal information of corresponding described client device, the daylight-saving time temporal information of the described client device of described correspondence adjusts according to described daylight-saving time benchmark.
In this embodiment, after described server device receives the time reference information of some client devices transmission, can not directly adjust the temporal information of described server device self, but first set up unit by time zone object, set up the time zone object of corresponding described client device, and carry the daylight-saving time reference information in time zone residing for described client device in the object of described time zone.Thus, described server device is by daylight-saving time time quantum, according to described time zone object, set up the daylight-saving time temporal information of corresponding described client device, the daylight-saving time temporal information of the described client device of described correspondence adjusts according to described daylight-saving time benchmark.In described server device, multiple client devices of corresponding different time zone, set up the daylight-saving time temporal information corresponding with client device respectively, make described server device synchronous with multiple client device retention time respectively.
In addition, in a preferred embodiment, as shown in Figure 8, described session sending module 503, comprising:
Time zone object acquisition unit 801, for when conversating with described client device, obtain the time zone object of corresponding described client device, according to described time zone object, set up daylight-saving time temporal information when respective session occurs, and daylight-saving time temporal information when described session being occurred is sent to transmitting element;
Described transmitting element 802, daylight-saving time temporal information when the described session sent for receiving described time zone object acquisition unit occurs, send session data to described client device, in described session data, carry daylight-saving time temporal information when described session occurs.
In this embodiment, when described server device needs to send session data to some client devices, described server device needs first by time zone object acquisition unit, obtain the time zone object of corresponding described client device, then, according to described time zone object, described server device is set up the daylight-saving time temporal information of respective session; The daylight-saving time temporal information of respective session can comprise: described server device sends temporal information during this session.Afterwards, described server device, by transmitting element, sends session data to described client device, carries daylight-saving time temporal information when described session occurs in described session data.
In above-mentioned implementation, because daylight-saving time temporal information when described session occurs is carried out synchronously according to the daylight-saving time reference information of the client device of correspondence, therefore, described client device, without the need to carrying out time conversion, can correctly obtain described session data.
It should be noted that, as shown in Figure 9, present invention also offers a kind of server device realized based on computer system.In specific implementation, the server device of the embodiment of the present invention can comprise: processor 901, memory 902, the physical modules such as bus 903 and communication interface 904, wherein, described memory 902 is for storing computer executed instructions, described processor 901 is connected by described bus 903 with described memory 902, when described server device 901 is run, described processor 901 performs the described computer executed instructions that described memory 902 stores, and communicated by the equipment of described communication interface 904 with described cluster management device outside, with the method making described server device perform the equipment that the realizes time synchronized described in various embodiments of the present invention.Wherein, processor can be central processing unit (centralprocessing unit, CPU), application-specific integrated circuit (ASIC) (application-specific integrated circuit, ASIC) etc.
In specific implementation, the present invention also provides a kind of computer-readable storage medium, and wherein, this computer-readable storage medium can have program stored therein, and can comprise the part or all of step in each embodiment of the equipment method for synchronizing time that the embodiment of the present invention provides when this program performs.Described storage medium can be magnetic disc, CD, read-only store-memory body (Read-Only Memory, ROM) or random store-memory body (Random Access Memory, RAM) etc.
Those of ordinary skill in the art can recognize, in conjunction with unit and the algorithm steps of each example of embodiment disclosed herein description, can realize with the combination of electronic hardware or computer software and electronic hardware.These functions perform with hardware or software mode actually, depend on application-specific and the design constraint of technical scheme.Professional and technical personnel can use distinct methods to realize described function to each specifically should being used for, but this realization should not thought and exceeds scope of the present invention.
Those skilled in the art can be well understood to, and for convenience and simplicity of description, the specific works process of the system of foregoing description, equipment and unit, with reference to the corresponding process in preceding method embodiment, can not repeat them here.
In several embodiments that the application provides, should be understood that disclosed system, equipment and method can realize by another way.Such as, apparatus embodiments described above is only schematic, such as, the division of described unit, be only a kind of logic function to divide, actual can have other dividing mode when realizing, such as multiple unit or assembly can in conjunction with or another system can be integrated into, or some features can be ignored, or do not perform.Another point, shown or discussed coupling each other or direct-coupling or communication connection can be by some interfaces, and the indirect coupling of equipment or unit or communication connection can be electrical, machinery or other form.
The described unit illustrated as separating component or can may not be and physically separates, and the parts as unit display can be or may not be physical location, namely can be positioned at a place, or also can be distributed in multiple network element.Some or all of unit wherein can be selected according to the actual needs to realize the object of the present embodiment scheme.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, also can be that the independent physics of unit exists, also can two or more unit in a unit integrated.
If described function using the form of SFU software functional unit realize and as independently production marketing or use time, can be stored in a computer read/write memory medium.Based on such understanding, the part of the part that technical scheme of the present invention contributes to prior art in essence in other words or this technical scheme can embody with the form of software product, this computer software product is stored in a storage medium, comprising some instructions in order to make a computer equipment (can be personal computer, server, or the network equipment etc.) or processor (processor) perform all or part of step of method described in each embodiment of the present invention.And aforesaid storage medium comprises: USB flash disk, portable hard drive, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disc or CD etc. various can be program code stored medium.
The above; be only the specific embodiment of the present invention, but protection scope of the present invention is not limited thereto, is anyly familiar with those skilled in the art in the technical scope that the present invention discloses; change can be expected easily or replace, all should be encompassed within protection scope of the present invention.Therefore, protection scope of the present invention should described be as the criterion with the protection range of claim.

Claims (10)

1. an equipment method for synchronizing time, is characterized in that, comprising:
Server device receives the time reference information on the described client device of client device transmission, and wherein, described client device and described server device are in different time zone;
Described server device when conversating with described client device, server device local time information according to described time reference synchronizing information.
2. method according to claim 1, is characterized in that, also comprises:
Described server device sends session data to described client device, carry the temporal information of described server device in described session data, the temporal information of described server device is the temporal information of described client device according to described time reference synchronizing information.
3. method according to claim 1, is characterized in that, described time reference information is daylight-saving time reference information, and wherein, daylight-saving time reference information comprises: privacy cm time zone offset privacy CM, time zone identify, the daylight-saving time is initial and ending message;
Described server device, according to described time reference synchronizing information local time information, comprising:
Described server device sets up the time zone object of corresponding described client device according to described daylight-saving time reference information, and described time zone object comprises the daylight-saving time reference information in time zone residing for described client device;
Described server device, according to described time zone object, sets up the daylight-saving time temporal information of corresponding described client device, and the daylight-saving time temporal information of the described client device of described correspondence adjusts according to described daylight-saving time benchmark.
4. method according to claim 3, it is characterized in that, described server device sends session data to described client device, the temporal information of described server device is carried in described session data, the temporal information of described server device is the temporal information of described client device according to described time reference synchronizing information, comprising:
When conversating with described client device, described server device obtains the time zone object of corresponding described client device, according to described time zone object, described server device is set up the daylight-saving time temporal information of respective session;
Described server device sends session data to described client device, carries daylight-saving time temporal information when described session occurs in described session data.
5. a server device, is characterized in that, comprising:
Benchmark receiver module, the time reference information on the described client device receiving client device transmission, and described time reference information is sent to synchronization module, wherein, described client device and described server device are in different time zone;
Described synchronization module, for receiving the described time reference information that described benchmark receiver module sends, when conversating with described client device, server device local time information according to described time reference synchronizing information.
6. equipment according to claim 5, is characterized in that, also comprises:
Session sending module, for sending session data to described client device, carry the temporal information of described server device in described session data, the temporal information of described server device is the temporal information of described client device according to described time reference synchronizing information.
7. equipment according to claim 5, is characterized in that, described time reference information is daylight-saving time reference information, and wherein, daylight-saving time reference information comprises: privacy cm time zone offset privacy CM, time zone identify, the daylight-saving time is initial and ending message;
Described synchronization module, comprising:
Time zone object sets up unit, for setting up the time zone object of corresponding described client device according to described daylight-saving time reference information, and described time zone object is sent to daylight-saving time time quantum, described time zone object comprises the daylight-saving time reference information in time zone residing for described client device;
Described daylight-saving time time quantum, the described time zone object of unit transmission is set up for receiving described time zone object, according to described time zone object, set up the daylight-saving time temporal information of corresponding described client device, the daylight-saving time temporal information of the described client device of described correspondence adjusts according to described daylight-saving time benchmark.
8. equipment according to claim 7, is characterized in that, described session sending module, comprising:
Time zone object acquisition unit, for when conversating with described client device, obtain the time zone object of corresponding described client device, according to described time zone object, set up daylight-saving time temporal information when respective session occurs, and daylight-saving time temporal information when described session being occurred is sent to transmitting element;
Described transmitting element, daylight-saving time temporal information when the described session sent for receiving described time zone object acquisition unit occurs, sends session data to described client device, carries daylight-saving time temporal information when described session occurs in described session data.
9. a client device, is characterized in that, comprising:
Benchmark sending module, for sending the time reference information on described client device to server device, wherein, described client device and described server device are in different time zone, make described server device when conversating with described client device, server device local time information according to described time reference synchronizing information;
Session receiver module, for receiving the session data that described server device sends, carry the temporal information of described server device in described session data, the temporal information of described server device is the temporal information of described client device according to described time reference synchronizing information.
10. equipment according to claim 9, is characterized in that, described time reference information is daylight-saving time reference information, and wherein, daylight-saving time reference information comprises: privacy cm time zone offset privacy CM, time zone identify, the daylight-saving time is initial and ending message.
CN201310367238.3A 2013-08-21 2013-08-21 Equipment time synchronization method and device Pending CN104426644A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310367238.3A CN104426644A (en) 2013-08-21 2013-08-21 Equipment time synchronization method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310367238.3A CN104426644A (en) 2013-08-21 2013-08-21 Equipment time synchronization method and device

Publications (1)

Publication Number Publication Date
CN104426644A true CN104426644A (en) 2015-03-18

Family

ID=52974675

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310367238.3A Pending CN104426644A (en) 2013-08-21 2013-08-21 Equipment time synchronization method and device

Country Status (1)

Country Link
CN (1) CN104426644A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106331770A (en) * 2016-09-06 2017-01-11 青岛海信电器股份有限公司 Time synchronization method and client
CN106487895A (en) * 2016-10-14 2017-03-08 深圳市欧瑞博电子有限公司 Time control method and device
CN106951026A (en) * 2017-03-06 2017-07-14 南京国电南自电网自动化有限公司 A kind of daylight-saving time implementation method based on single clock system
CN107749789A (en) * 2017-10-10 2018-03-02 广东乐心医疗电子股份有限公司 Time synchronization method and related device

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070088764A1 (en) * 2005-10-18 2007-04-19 Samsung Electronics Co., Ltd. Method and apparatus for synchronizing multimedia content with device which supports multi-server environment
CN101035331A (en) * 2006-03-06 2007-09-12 三星电子株式会社 Method of updating daylight saving time information in wireless terminal
CN101174982A (en) * 2007-11-16 2008-05-07 华为技术有限公司 Method, device and system for implementing multi-time zone data information unification
CN101741597A (en) * 2008-11-26 2010-06-16 英业达股份有限公司 Server system and method for automatically correcting time
US20120179739A1 (en) * 2009-08-27 2012-07-12 Huawei Technologies Co., Ltd. Method, apparatus, and system for processing time
CN102982226A (en) * 2007-08-10 2013-03-20 施曼信医疗Asd公司 Method and system of communication between server and a plurality of medical devices
US20130091359A1 (en) * 2010-06-22 2013-04-11 Shanghai Cloudway Information Technology Co., Ltd. Short-range Secure Data Communication Method Based on Sound Wave or Audio, and Apparatus Thereof
CN202940822U (en) * 2012-11-28 2013-05-15 中国舰船研究设计中心 Marine local area network time unification system

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070088764A1 (en) * 2005-10-18 2007-04-19 Samsung Electronics Co., Ltd. Method and apparatus for synchronizing multimedia content with device which supports multi-server environment
CN101035331A (en) * 2006-03-06 2007-09-12 三星电子株式会社 Method of updating daylight saving time information in wireless terminal
CN102982226A (en) * 2007-08-10 2013-03-20 施曼信医疗Asd公司 Method and system of communication between server and a plurality of medical devices
CN101174982A (en) * 2007-11-16 2008-05-07 华为技术有限公司 Method, device and system for implementing multi-time zone data information unification
CN101741597A (en) * 2008-11-26 2010-06-16 英业达股份有限公司 Server system and method for automatically correcting time
US20120179739A1 (en) * 2009-08-27 2012-07-12 Huawei Technologies Co., Ltd. Method, apparatus, and system for processing time
US20130091359A1 (en) * 2010-06-22 2013-04-11 Shanghai Cloudway Information Technology Co., Ltd. Short-range Secure Data Communication Method Based on Sound Wave or Audio, and Apparatus Thereof
CN202940822U (en) * 2012-11-28 2013-05-15 中国舰船研究设计中心 Marine local area network time unification system

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106331770A (en) * 2016-09-06 2017-01-11 青岛海信电器股份有限公司 Time synchronization method and client
CN106487895A (en) * 2016-10-14 2017-03-08 深圳市欧瑞博电子有限公司 Time control method and device
CN106951026A (en) * 2017-03-06 2017-07-14 南京国电南自电网自动化有限公司 A kind of daylight-saving time implementation method based on single clock system
CN106951026B (en) * 2017-03-06 2019-06-28 南京国电南自电网自动化有限公司 A kind of daylight-saving time implementation method based on single clock system
CN107749789A (en) * 2017-10-10 2018-03-02 广东乐心医疗电子股份有限公司 Time synchronization method and related device
CN107749789B (en) * 2017-10-10 2019-05-17 广东乐心医疗电子股份有限公司 Time synchronization method and related device

Similar Documents

Publication Publication Date Title
EP3849110A1 (en) Reference time determination method and apparatus
EP3076572B1 (en) Clock synchronization method for multiple clock domains, line card, and ethernet device
CN101969384B (en) Compatibility judging method, device and network equipment for switching between active and standby main control boards
CN109644465B (en) A resource allocation method and device, and computer storage medium
CN104426644A (en) Equipment time synchronization method and device
EP4044738A1 (en) Information sending method, information receiving method and device
WO2022121772A1 (en) Data disaster recovery backup method, and unified data management (udm) entity and storage medium
CN104468947B (en) A kind of information processing method and electronic equipment
EP2256990B1 (en) A method for transferring the network management configuration information between the element management systems
CN110958287B (en) Operation object data synchronization method, device and system
US9990226B2 (en) Apparatus and method for implementing common public radio interface negotiation state machine
US11502809B2 (en) Method and apparatus of indicating synchronization signal block, method and apparatus of determining synchronization signal block, base station, user equipment and storage medium
CN111078463A (en) Data backup method, device and system
CN103259639B (en) A kind of clock synchronizing method of stack equipment and equipment
CN106953809B (en) 485 time-sharing communication-based equipment resource acquisition method
CN202710751U (en) Compass directing and monitoring equipment
US11758391B2 (en) User equipment (UE) identification in a wireless communication network
CN102932208A (en) Site monitoring method and device
JP6616184B2 (en) Data transmission method and apparatus
CN102013918B (en) Method, system and device for transmitting data
CN109005203A (en) Method of data synchronization and device, storage medium, processor, terminal
CN112910595A (en) Real-time communication method and device
EP2887754B1 (en) Method, device and system for determining working mode of data card type terminal
WO2016188499A1 (en) Network management method and apparatus, network device and data synchronization system
CN115088318B (en) Reference time information using method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
AD01 Patent right deemed abandoned
AD01 Patent right deemed abandoned

Effective date of abandoning: 20180608