Summary of the invention
The embodiment of the present invention provides a kind of terminal control method and device, calibrates for the display time to terminal,
The display time of itself and the first equipment is set to match.
The embodiment of the present invention provides a kind of terminal control method, comprising:
Before first reminds the moment to reach, according to pre-set time difference, school is carried out to the display time of terminal
Standard, so that the display time of the terminal and the display time of the first equipment match.
The aspect and any possible implementation manners as described above, it is further provided a kind of implementation, described first
Before reminding the moment to reach, the method also includes:
Obtain first equipment second reminds the moment;
It is calculated according to the second prompting moment and the time difference, obtains described first and remind the moment.
The aspect and any possible implementation manners as described above, it is further provided a kind of implementation, the basis are pre-
The time difference being first arranged, before being calibrated to the display time of terminal, comprising:
The third for obtaining the first equipment reminds the moment;
Obtain fiducial time corresponding with the third prompting moment;
It reminds the moment to be calculated with the fiducial time according to the third, obtains the time difference.
The aspect and any possible implementation manners as described above, it is further provided a kind of implementation, the time difference
Value is the difference that the third reminds corresponding fiducial time at moment and third prompting moment.
The aspect and any possible implementation manners as described above, it is further provided a kind of implementation, it is described first
Before reminding the moment to reach, according to pre-set time difference, the display time of terminal is calibrated, comprising:
When being reached at the time of the first prompting moment preset in advance time threshold corresponds to, according to the pre-set time
Difference calculates the current time of first equipment;
The display time of the terminal is adjusted to the current time of first equipment.
The embodiment of the present invention also provides a kind of terminal control mechanism characterized by comprising
Calibration unit, for according to pre-set time difference, being shown to terminal before first reminds the moment to reach
Show that the time is calibrated, so that the display time of the terminal and the display time of the first equipment match.
The aspect and any possible implementation manners as described above, it is further provided a kind of implementation, described device is also
Include:
First acquisition unit, second for obtaining first equipment reminds the moment;
First computing unit obtains described for being calculated according to the second prompting moment and the time difference
First reminds the moment.
The aspect and any possible implementation manners as described above, it is further provided a kind of implementation, described device is also
Include:
Second acquisition unit, the third for obtaining the first equipment remind the moment;
Third acquiring unit, for obtaining fiducial time corresponding with the third prompting moment;
Second computing unit obtains described for reminding the moment to be calculated with the fiducial time according to the third
Time difference.
The aspect and any possible implementation manners as described above, it is further provided a kind of implementation, the time difference
Value is the difference that the third reminds corresponding fiducial time at moment and third prompting moment.
The aspect and any possible implementation manners as described above, it is further provided a kind of implementation, the calibration are single
Member is specifically used for:
When being reached at the time of the first prompting moment preset in advance time threshold corresponds to, according to the pre-set time
Difference calculates the current time of first equipment;
The display time of the terminal is adjusted to the current time of first equipment.
Terminal control method and device provided in an embodiment of the present invention reach it by the first prompting moment in the terminal
Before, according to preset time difference, the display time of terminal is calibrated, so that the display time and first of terminal
The display time of equipment matches, and technical solution of the present invention can will show that the time at the appointed time adjusts in range in terminal
It is solved existing for the display time identical with designated equipment to realize the effect for showing time synchronization between distinct device
Have and lack one kind in technology and can be used in the terminal, school is carried out to the display time of terminal according to the display time of designated equipment
The problem of method of standard.
Embodiment
Fig. 1 is the first pass figure of terminal control method embodiment provided in an embodiment of the present invention, as shown in Figure 1, this reality
The terminal control method for applying example, can specifically include following steps:
101, before first reminds the moment to reach, according to pre-set time difference, to display time of terminal into
Row calibration, so that the display time of terminal and the display time of the first equipment match.
Display time in terminal be terminal the display page in show time of user, the display time of the first equipment
For the time for showing user in the display page of the first equipment, in embodiments of the present invention, the first equipment is used for when specified
Quarter is reminded, and terminal is used by user, when the display time difference of the display time of terminal and the first equipment, is needed
The display time of terminal is calibrated or adjusted, so that the display time phase of the display time and the first equipment of terminal
Match.
For example, the display time of the first equipment is 08:55, display time of terminal is 08:50, the display time of terminal with
The display time of first equipment is different, and therefore, it is necessary to the display time of terminal is adjusted to 08:55.
It is understood that in order to avoid user misses the given time in the first equipment, it is in embodiments of the present invention, right
The process that the display time of terminal is calibrated needs to complete before the first prompting moment reached, in embodiments of the present invention,
First reminds the moment for the display time in terminal, and time difference is in the display time at a certain moment in the first equipment and terminal
In the difference of the display time at the moment, for example, the display time of the first equipment is 08:55, the display time of terminal is 08:
50, time difference is 5 minutes.
Fig. 2 is the second flow chart of terminal control method embodiment provided in an embodiment of the present invention, as shown in Fig. 2, this reality
The terminal control method for applying example can also include the following steps: on the basis of foregoing teachings
102, obtain the first equipment second reminds the moment.
In embodiments of the present invention, it second reminds the moment for the given time in the first equipment, is set for the first equipment
For at the time of reminding user, for example, the first equipment is punched-card machine, the time that the user set in punched-card machine checks card is 09:
00, then second remind the moment for 09:00.
When user reminds moment input terminal for second, terminal gets the second prompting of the first equipment of user's input
Moment.
103, it is calculated according to the second prompting moment and time difference, obtained for the first prompting moment.
After terminal got for the second prompting moment, needs to calculate in terminal and remind the moment corresponding first to mention with second
It wakes up the moment, the mode of calculating was the second prompting moment as addend, and time difference reminds the moment to be equal to second as addend, first
Remind moment and time difference and.
For example, for example, the first equipment is punched-card machine, the time that the user set in punched-card machine checks card as 09:00, i.e., second
It reminds the moment, time difference is 5 minutes, then first reminds the moment for 08:55.
Fig. 3 is the third flow chart of terminal control method embodiment provided in an embodiment of the present invention, as shown in figure 3, this reality
The terminal control method for applying example can also include the following steps: on the basis of foregoing teachings
104, the third for obtaining the first equipment reminds the moment.
In embodiments of the present invention, accurate time difference in order to obtain, can pass through to calculate and obtain.Specifically calculated
Cheng Wei, the third for obtaining the first equipment first are reminded the moment, and it is any time in the first equipment, Ke Yili that third, which reminds the moment,
Solution, third remind the moment to remind the moment not equal to second, and when third is reminded moment input terminal by user, terminal is obtained
The third of the first equipment inputted to user reminds the moment.
105, fiducial time corresponding with the third prompting moment is obtained.
Fiducial time can be understood as a standard time, be used to carry out school as the display time with the first equipment
The quasi- reference time, for example, Beijing time corresponding with the third prompting moment is obtained from network, in another example, it is obtained from terminal
Take current display time corresponding with the third prompting moment.
106, it reminds moment and fiducial time to be calculated according to third, obtains time difference.
After terminal gets fiducial time, need to calculate the difference that third reminds moment and fiducial time, calculating
Mode is that third reminds corresponding fiducial time at moment to be used as minuend, the third prompting moment as subtrahend, time difference the
Three remind the difference of corresponding fiducial time at moment and third prompting moment.
Fig. 4 is the 4th flow chart of terminal control method embodiment provided in an embodiment of the present invention, as shown in figure 4, this reality
It applies in the terminal control method of example, step 101 can specifically include following steps:
101a, first prompting moment preset in advance time threshold correspond at the time of reach when, according to it is pre-set when
Between difference, calculate the first equipment current time.
Preferably, in order to the timeliness for further improving time calibration does not influence user in embodiments of the present invention
Normal use terminal checks the display time, and can play the role of calibration, can before the first prompting moment reached, in advance one
The section time calibrates the display time of terminal.It is understood that being for a period of time in advance preset time threshold, then exist
Before first reminds the moment, when reaching at the time of preset time threshold corresponds to, according to pre-set time difference, first is calculated
The current time of equipment.
The process of calculating is at the time of preset time threshold corresponds to as minuend, and time difference is set as subtrahend, first
Standby current time, which is equal at the time of preset time threshold corresponds to, subtracts time difference.
It should be noted that in embodiments of the present invention, preset time threshold can be set by user, can also mention
Now it is arranged in the terminal.
For example, preset time threshold is 3 minutes, first reminds the moment for 08:55, and pre-set time difference is 5 points
Clock, then when 08:52 is reached, the current time for calculating the first equipment is 08:57.
102b, the current time that the display time of terminal is adjusted to the first equipment.
It should be noted that terminal involved in the embodiment of the present invention can include but is not limited to personal computer
It is (Persona l Computer, PC), personal digital assistant (Persona l Digita l Ass i stant, PDA), wireless
Handheld device, tablet computer (Tab l et Computer), mobile phone, MP3 player, MP4 player etc..
It should be noted that 101~106 executing subject can be terminal control mechanism, which can be located locally
The application of terminal, or can also be the plug-in unit or Software Development Kit (Software being located locally in the application of terminal
Deve l opment Kit, SDK) etc. functional units, the embodiment of the present invention is to this without being particularly limited to.
It is understood that using the application program (nat iveApp) that can be mounted in terminal, or can be with
It is a web page program (webApp) of the browser in terminal, the embodiment of the present invention is to this without limiting.
Terminal control method provided in an embodiment of the present invention, before being reached by the first prompting moment in the terminal, root
According to preset time difference, the display time of terminal is calibrated, so that the display time of terminal and the first equipment
The display time match, technical solution of the present invention can will be shown in terminal the time be at the appointed time adjusted in range with
The designated equipment identical display time solves existing skill to realize the effect for showing time synchronization between distinct device
Lacking one kind in art can be used in the terminal, being calibrated according to display time of the display time of designated equipment to terminal
The problem of method.
Fig. 5 is the first structure diagram of terminal control mechanism embodiment provided in an embodiment of the present invention, as shown in figure 5,
Terminal control mechanism provided in an embodiment of the present invention may include: calibration unit 11.
Calibration unit 11 is used for before first reminds the moment to reach, according to pre-set time difference, to terminal
The display time is calibrated, so that the display time of terminal and the display time of the first equipment match.
The terminal control mechanism of the present embodiment can be used for executing the technical solution of embodiment of the method shown in Fig. 1, realize
Principle is similar with technical effect, and details are not described herein again.
Fig. 6 is the second structural schematic diagram of terminal control mechanism embodiment provided in an embodiment of the present invention, as shown in fig. 6,
Terminal control mechanism provided in an embodiment of the present invention can also include: on the basis of foregoing teachings
First acquisition unit 12, second for obtaining the first equipment reminds the moment.
First computing unit 13, for being calculated according to the second prompting moment and time difference, when obtaining the first prompting
It carves.
The terminal control mechanism of the present embodiment can be used for executing the technical solution of embodiment of the method shown in Fig. 2, realize
Principle is similar with technical effect, and details are not described herein again.
Fig. 7 is the third structural schematic diagram of terminal control mechanism embodiment provided in an embodiment of the present invention, as shown in fig. 7,
Terminal control mechanism provided in an embodiment of the present invention can also include: on the basis of foregoing teachings
Second acquisition unit 14, the third for obtaining the first equipment remind the moment;
Third acquiring unit 15, for obtaining fiducial time corresponding with the third prompting moment;
Second computing unit 16 obtains time difference for reminding the moment to be calculated with fiducial time according to third.
During a concrete implementation, time difference is that third reminds corresponding fiducial time at moment and third to remind
The difference at moment.
The terminal control mechanism of the present embodiment can be used for executing the technical solution of embodiment of the method shown in Fig. 3, realize
Principle is similar with technical effect, and details are not described herein again.
During a concrete implementation, calibration unit 11 is specifically used for:
When being reached at the time of the first prompting moment preset in advance time threshold corresponds to, according to the pre-set time difference
Value calculates the current time of the first equipment;
The display time of terminal is adjusted to the current time of the first equipment.
The terminal control mechanism of the present embodiment can be used for executing the technical solution of embodiment of the method shown in Fig. 4, realize
Principle is similar with technical effect, and details are not described herein again.
In several embodiments provided by the present invention, it should be understood that disclosed system, device and method can be with
It realizes by another way.For example, the apparatus embodiments described above are merely exemplary, for example, the module
It divides, only a kind of logical function partition, there may be another division manner in actual implementation, for example, multiple modules or group
Part can be combined or can be integrated into another system, or some features can be ignored or not executed.Another point, it is shown
Or the mutual coupling, direct-coupling or communication connection discussed can be through some interfaces, device or module it is indirect
Coupling or communication connection can be electrical property, mechanical or other forms.
The module as illustrated by the separation member may or may not be physically separated, aobvious as module
The component shown may or may not be physical module, it can and it is in one place, or may be distributed over multiple
On network module.Some or all of the modules therein can be selected to realize the mesh of this embodiment scheme according to the actual needs
's.
It, can also be in addition, each functional module in each embodiment of the present invention can integrate in a processing module
It is that modules physically exist alone, can also be integrated in two or more modules in a module.Above-mentioned integrated mould
Block both can take the form of hardware realization, can also realize in the form of hardware adds software function module.
The above-mentioned integrated module realized in the form of software function module, can store and computer-readable deposit at one
In storage media.Above-mentioned software function module is stored in a storage medium, including some instructions are used so that a computer
It is each that device (can be personal computer, server or network equipment etc.) or processor (Processor) execute the present invention
The part steps of embodiment the method.And storage medium above-mentioned includes: USB flash disk, mobile hard disk, read-only memory (Read-On
Ly Memory, ROM), random access memory (Random Access Memory, RAM), magnetic or disk etc. is various can
To store the medium of program code.
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the invention, all in essence of the invention
Within mind and principle, any modification, equivalent substitution, improvement and etc. done be should be included within the scope of the present invention.