CN104239448A - Time sequence data timestamp obtaining method and device - Google Patents

Time sequence data timestamp obtaining method and device Download PDF

Info

Publication number
CN104239448A
CN104239448A CN201410441720.1A CN201410441720A CN104239448A CN 104239448 A CN104239448 A CN 104239448A CN 201410441720 A CN201410441720 A CN 201410441720A CN 104239448 A CN104239448 A CN 104239448A
Authority
CN
China
Prior art keywords
sequence data
current time
time sequence
described current
timestamp
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
CN201410441720.1A
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.)
BEIJING YOUTEJIE INFORMATION TECHNOLOGY Co Ltd
Original Assignee
BEIJING YOUTEJIE INFORMATION TECHNOLOGY 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 BEIJING YOUTEJIE INFORMATION TECHNOLOGY Co Ltd filed Critical BEIJING YOUTEJIE INFORMATION TECHNOLOGY Co Ltd
Priority to CN201410441720.1A priority Critical patent/CN104239448A/en
Publication of CN104239448A publication Critical patent/CN104239448A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/23Updating
    • G06F16/2308Concurrency control
    • G06F16/2315Optimistic concurrency control
    • G06F16/2322Optimistic concurrency control using timestamps

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Electric Clocks (AREA)

Abstract

The invention discloses a time sequence data timestamp obtaining method and device. The method comprises the following steps that the current time sequence data is read; whether the current time sequence data includes time information or not is judged; when the current time sequence data does not include the time information, the timestamp of the current time sequence data is obtained according to the time information of relevant information of the current time sequence data. When the technical scheme of the method and the device provided by the invention is adopted, the time sequence data not including the time information can realize the time sequence data timestamp obtaining according to the time information of the relevant information, so the corresponding timestamp can be obtained on all time sequence data, the universality is realized, convenience is provided for the subsequent data analysis, and the processing result deviation due to important time data lack can be avoided.

Description

A kind of acquisition methods of timestamp of time series data and device
Technical field
The present invention relates to Internet technical field, particularly relate to a kind of acquisition methods and device of timestamp of time series data.
Background technology
Along with the fast development of infotech, corporate information technology infrastructure construction scale constantly expands, and IT monitoring, operational system are also found broad application, and thereupon create a large amount of data messages.And daily record amount in mass data information is huge, form is also not quite similar, and is difficult to be utilized.In order to find desired data in mass text information, how efficiently data query becomes a difficult problem instantly.
Time series data not only comprises daily record, and also comprise the data that various sensor, intelligent appliance and various transaction systems etc. produce, these time series datas are stabbed all if having time, temporal information when namely every bar data produce.The data produced due to different time may be similar even identical, and therefore timestamp becomes the important information of difference time series data, is also subsequent treatment, the important evidence analyzing data.Therefore, obtain the foundation of timestamp as retrieve data of every bar data, the data for efficient inquiry special time scope are greatly improved.But, in correlation technique, the timestamp obtaining data is confined to single data type, such as JAVA form, does not have versatility, and can only obtain timestamp information existing in data, and some are not carried to the data of timestamp, then cannot get, thus cause lacking important temporal information during processing time data, there is deviation in result.
Summary of the invention
The embodiment of the present invention provides a kind of acquisition methods and device of timestamp of time series data, for realizing the timestamp of acquisition time sequence data accurately and efficiently.
An acquisition methods for the timestamp of time series data, comprises the following steps:
Read current time sequence data;
Judge whether comprise temporal information in described current time sequence data;
When not comprising temporal information in described current time sequence data, according to the temporal information of the relevant information of described current time sequence data, obtain the timestamp of described current time sequence data.
Optionally, described relevant information is identical sequence data At All Other Times of originating with described current time sequence data;
Described when not comprising temporal information in described current time sequence data, obtain the timestamp of described current time sequence data according to the temporal information of the relevant information of described current time sequence data, comprising:
In described sequence data At All Other Times, search nearest with the described current time sequence data time interval and comprise the last bar time series data of temporal information;
Extract the timestamp of described last bar time series data;
Using the timestamp of the timestamp of described last bar time series data as described current time sequence data; Or, originate timestamp time interval of identical adjacent two time series datas according to described current time sequence data, calculate the time deviation between described last bar time series data and described current time sequence data timestamp, by the timestamp of described last bar time series data and described time deviation and, as the timestamp of described current time sequence data.
Optionally, described when not comprising temporal information in described current time sequence data, according to the temporal information of the relevant information of described current time sequence data, obtain the time of described current time sequence data, also comprise:
When in described sequence data At All Other Times, when not finding described last bar time series data, judge whether comprise temporal information in the file attribute of described current time sequence data;
When comprising temporal information in described file attribute, using the timestamp of the temporal information in described file attribute as described current time sequence data.
Optionally, described judge whether comprise temporal information in the file attribute of described current time sequence data after, described when not comprising temporal information in described current time sequence data, according to the temporal information of the relevant information of described current time sequence data, obtain the time of described current time sequence data, also comprise:
When not comprising temporal information in described file attribute, determine the uplink time of described current time sequence data;
Using the timestamp of the uplink time of described current time sequence data as described current time sequence data.
Optionally, describedly judge whether comprise temporal information in described current time sequence data, comprising:
Judge the information whether comprising Preset Time stamp form in described current time sequence data; When described current time sequence data comprises the information of Preset Time stamp form, judge to comprise temporal information in described current time sequence data; Otherwise, judge not comprise temporal information in described current time sequence data;
Described method also comprises:
When comprising temporal information in described current time sequence data, using the timestamp of the information of Preset Time stamp form in described current time sequence data as described current time sequence data.
Optionally, described when not comprising temporal information in described current time sequence data, according to the temporal information of the relevant information of described current time sequence data, obtain the timestamp of described current time sequence data, comprising:
Judge whether comprise temporal information in the file attribute of described current time sequence data; When comprising temporal information in described file attribute, using the timestamp of the temporal information in described file attribute as described current time sequence data; Or
Determine the uplink time of described current time sequence data; Using the timestamp of the uplink time of described current time sequence data as described current time sequence data.
Some beneficial effects of the embodiment of the present invention can comprise: for the time series data not comprising temporal information, can according to the timestamp of the temporal information acquisition time sequence data of its relevant information, thus corresponding timestamp can both be got to all time series datas, there is versatility, and provide convenience for follow-up analysis data, the result avoiding the shortage of material time data to cause produces deviation.
An acquisition device for the timestamp of time series data, comprising:
Read module, for reading current time sequence data;
Judge module, for judging whether comprise temporal information in described current time sequence data;
First acquisition module, for when not comprising temporal information in described current time sequence data, according to the temporal information of the relevant information of described current time sequence data, obtains the timestamp of described current time sequence data.
Optionally, described first acquisition module comprises:
Search unit, in described sequence data At All Other Times, search nearest with the described current time sequence data time interval and comprise the last bar time series data of temporal information;
Extraction unit, for extracting the timestamp of described last bar time series data;
First acquiring unit, for using the timestamp of the timestamp of described last bar time series data as described current time sequence data; Or, originate timestamp time interval of identical adjacent two time series datas according to described current time sequence data, calculate the time deviation between described last bar time series data and described current time sequence data timestamp, by the timestamp of described last bar time series data and described time deviation and, as the timestamp of described current time sequence data.
Optionally, described first acquisition module also comprises:
First judging unit, for when in described sequence data At All Other Times, when not finding described last bar time series data, judges whether comprise temporal information in the file attribute of described current time sequence data;
Second acquisition unit, for when comprising temporal information in described file attribute, using the timestamp of the temporal information in described file attribute as described current time sequence data.
Optionally, described first acquisition module also comprises:
First determining unit, for when not comprising temporal information in described file attribute, determines the uplink time of described current time sequence data;
3rd acquiring unit, for using the timestamp of the uplink time of described current time sequence data as described current time sequence data.
Optionally, described judge module, also for judging the information whether comprising Preset Time stamp form in described current time sequence data; When described current time sequence data comprises the information of Preset Time stamp form, judge to comprise temporal information in described current time sequence data; Otherwise, judge not comprise temporal information in described current time sequence data;
Described device also comprises:
Second acquisition module, for when comprising temporal information in described current time sequence data, using the timestamp of the information of Preset Time stamp form in described current time sequence data as described current time sequence data.
Optionally, described first acquisition module comprises:
Second judging unit, for judge described current time sequence data file attribute in whether comprise temporal information; When comprising temporal information in described file attribute, using the timestamp of the temporal information in described file attribute as described current time sequence data;
Second determining unit, for determining the uplink time of described current time sequence data; Using the timestamp of the uplink time of described current time sequence data as described current time sequence data.
Adopt the acquisition device of the timestamp of a kind of time series data in the present embodiment, for the time series data not comprising temporal information, can according to the timestamp of the temporal information acquisition time sequence data of its relevant information, thus corresponding timestamp can both be got to all time series datas, there is versatility, and provide convenience for follow-up analysis data, the result avoiding the shortage of material time data to cause produces deviation.
Other features and advantages of the present invention will be set forth in the following description, and, partly become apparent from instructions, or understand by implementing the present invention.Object of the present invention and other advantage realize by structure specifically noted in write instructions, claims and accompanying drawing and obtain.
Below by drawings and Examples, technical scheme of the present invention is described in further detail.
Accompanying drawing explanation
Accompanying drawing is used to provide a further understanding of the present invention, and forms a part for instructions, together with embodiments of the present invention for explaining the present invention, is not construed as limiting the invention.In the accompanying drawings:
Fig. 1 is the process flow diagram of the acquisition methods of the timestamp of a kind of time series data in the embodiment of the present invention;
Fig. 2 is the process flow diagram of the acquisition methods of the timestamp of a kind of time series data in the present invention one specific embodiment;
Fig. 3 is the block diagram of the acquisition device of the timestamp of a kind of time series data in the embodiment of the present invention;
Fig. 4 is the block diagram of the first acquisition module in the acquisition device of the timestamp of a kind of time series data in the embodiment of the present invention;
Fig. 5 is the block diagram of the acquisition device of the timestamp of another kind of time series data in the embodiment of the present invention.
Embodiment
Below in conjunction with accompanying drawing, the preferred embodiments of the present invention are described, should be appreciated that preferred embodiment described herein is only for instruction and explanation of the present invention, is not intended to limit the present invention.
In the embodiment of the present invention, time series data is the data collected in different time points, and this kind of data reflect state or the degree over time such as a certain things, phenomenon.Such as, the change of China's gross domestic product (GDP) from 1949 to 2009 is exactly time series data.Time series data in the embodiment of the present invention not only comprises daily record, also comprises all data with timestamp that various sensor, intelligent appliance and various transaction system (electric business, bank, internet finance) etc. produce.
Figure 1 shows that the process flow diagram of the acquisition methods of the timestamp of a kind of time series data disclosed in the embodiment of the present invention.As shown in Figure 1, S11-S13 is comprised the following steps:
Step S11, reads current time sequence data;
Step S12, judges whether comprise temporal information in current time sequence data;
Step S13, when not comprising temporal information in current time sequence data, according to the temporal information of the relevant information of current time sequence data, obtains the timestamp of current time sequence data.
Some beneficial effects of the present embodiment can comprise: for the time series data not comprising temporal information, can according to the timestamp of the temporal information acquisition time sequence data of its relevant information, thus corresponding timestamp can both be got to all time series datas, there is versatility, and provide convenience for follow-up analysis data, the result avoiding the shortage of material time data to cause produces deviation.
In step s 12, can judge whether comprise temporal information in current time sequence data in the following manner: the information judging whether to comprise in current time sequence data Preset Time stamp form; When current time sequence data comprises the information of Preset Time stamp form, judge to comprise temporal information in current time sequence data; Otherwise, judge not comprise temporal information in current time sequence data.
Wherein, Preset Time stamp form can be the form of any one temporal information, and table 1 is depicted as the corresponding relation between several frequently seen temporal information form and concrete time data.
Table 1
Temporal information form Citing
%Y-%m-%d 1998-12-31
%y-%m-%d 98-12-31
%Y?years,%j?days 1998?years,312?days
%b?%d,%Y Jan?24,2003
%B?%d,%Y January?24,2003
Such as, when the timestamp form that system is pre-configured is the %Y-%m-%d form in table 1, regular expression is then utilized to mate this form, if coupling obtains, namely include the information of Preset Time stamp form in current time sequence data, then can judge to include temporal information in current time sequence data.
When judging to comprise temporal information in current time sequence data, using the timestamp of the information of Preset Time stamp form in current time sequence data as current time sequence data; When judging not comprise temporal information in current time sequence data, then can implementation step S13.
In one embodiment, above-mentioned steps S13 can perform as following either type:
Mode one
In step s 13, relevant information can be originate with current time sequence data sequence data At All Other Times identical (below all referred to as At All Other Times sequence data), and in this case, step S13 may be embodied as following steps S131-S133:
Step S131, in sequence data At All Other Times, searches nearest with the current time sequence data time interval and comprises the last bar time series data of temporal information;
Step S132, extracts the timestamp of last bar time series data;
Step S133, using the timestamp of the timestamp of last bar time series data as current time sequence data.
In step S131-S133, said last bar time series data might not refer to the last bar data adjacent with current time sequence data, but must meet distance current time sequence data recently and the time series data comprised before the current time sequence data of these two conditions of temporal information simultaneously.When searching the last bar time series data meeting above-mentioned condition, identical sequence data At All Other Times of originating with current time sequence data can be searched forward one by one, until find the time series data comprising temporal information.
Or, step S133 can also perform as step S1330: originate timestamp time interval of identical adjacent two time series datas according to current time sequence data, calculate the time deviation between last bar time series data and current time sequence data timestamp, by the timestamp of last bar time series data and time deviation and, as the timestamp of current time sequence data.
Wherein, when calculating the time deviation between last bar time series data and current time sequence data timestamp, can directly according to the mathematic interpolation of the rise time of last bar time series data and current time sequence data, also can originate in identical all time series datas with current time sequence data, difference between the rise time calculating often adjacent two time series datas, and then average, extrapolate the time deviation between last bar time series data and current time sequence data timestamp by the mean value of difference.
Adopt said method, using the timestamp of last bar time series data and time deviation and as the timestamp of current time sequence data, while the timestamp obtaining current time sequence data, make the timestamp of current time sequence data more accurate, thus also can obtain analysis result more accurately when subsequent analysis data.
Said method, for step S131, when with current time sequence data originate do not find the last bar time series data of the condition met in step S131 in identical sequence data At All Other Times time, also can get the timestamp of current time sequence data according to following steps A1-A2: steps A 1, judges whether comprise temporal information in the file attribute of current time sequence data; Steps A 2, when comprising temporal information in file attribute, using the timestamp of the temporal information in file attribute as current time sequence data.Such as, in the file attribute of current time sequence data, include temporal information, or include user when changing the temporal information of current time sequence data, can using the timestamp of this temporal information as current time sequence data.
Wherein, when not comprising temporal information in file attribute, after steps A 1, said method also can get the timestamp of current time sequence data by B1-B2 as follows: step B1, when not comprising temporal information in file attribute, determine the uplink time of current time sequence data; Step B2, using the timestamp of the uplink time of current time sequence data as current time sequence data.Such as, user is uploaded the time of current time sequence data or the time of system generation current time sequence data, as the timestamp of current time sequence data.
Illustrate that employing mode one obtains the method for the timestamp of current time sequence data below by way of a specific embodiment, as shown in Figure 2, comprise the following steps:
Step S21, reads current time sequence data;
Step S22, judges the information whether comprising Preset Time stamp form in current time sequence data; If comprise the information of Preset Time stamp form in current time sequence data, then perform step S27; If do not comprise the information of Preset Time stamp form in current time sequence data, then perform step S23;
Step S23, is originating in identical sequence data At All Other Times with current time sequence data, searches nearest with the current time sequence data time interval and comprises the last bar time series data of temporal information; The last bar time series data satisfied condition if find, then perform step S29; If search the last bar time series data less than satisfying condition, then perform step S24;
Step S24, judges whether comprise temporal information in the file attribute of current time sequence data; If comprise temporal information in the file attribute of current time sequence data, then perform step S28; If do not comprise temporal information in the file attribute of current time sequence data, then perform step S25;
Step S25, determines the uplink time of current time sequence data;
Step S26, using the timestamp of the uplink time of current time sequence data as current time sequence data;
Step S27, using the timestamp of the information of Preset Time stamp form in current time sequence data as current time sequence data;
Step S28, using the timestamp of the temporal information in file attribute as current time sequence data;
Step S29, extracts the timestamp of last bar time series data, as the timestamp of current time sequence data.
Adopt the technical scheme of the present embodiment, for the time series data not comprising temporal information, can according to the timestamp of the temporal information acquisition time sequence data of its relevant information (comprising the sequence data At All Other Times, file attribute, uplink time etc. in identical source), thus corresponding timestamp can both be got to all time series datas, there is versatility, and provide convenience for follow-up analysis data, the result avoiding the shortage of material time data to cause produces deviation.
Mode two
Step S13 can perform as following steps S1301-S1302:
Step S1301, when not comprising temporal information in current time sequence data, judges whether comprise temporal information in the file attribute of current time sequence data;
Step S1302, when comprising temporal information in file attribute, using the timestamp of the temporal information in file attribute as current time sequence data.
When current time sequence data does not comprise temporal information, directly using the timestamp of the event information in the file attribute of current time sequence data as current time sequence data, the approach that acquisition time is stabbed is more convenient.
Mode three
Step S13 can perform as following steps S1311-S1312:
Step S1311, when not comprising temporal information in current time sequence data, determines the uplink time of current time sequence data;
Step S1312, using the timestamp of the uplink time of current time sequence data as current time sequence data.
When current time sequence data does not comprise temporal information, directly using the timestamp of the uplink time of current time sequence data as current time sequence data, the approach that acquisition time is stabbed is more convenient.
Figure 3 shows that the block diagram of the acquisition device of the timestamp of a kind of time series data in the embodiment of the present invention.With reference to Fig. 3, a kind of acquisition device of timestamp of time series data comprises:
Read module 31, for reading current time sequence data;
Judge module 32, for judging whether comprise temporal information in current time sequence data;
First acquisition module 33, for when not comprising temporal information in current time sequence data, according to the temporal information of the relevant information of current time sequence data, obtains the timestamp of current time sequence data.
Optionally, the first acquisition module 33 can comprise with lower unit, as shown in Figure 4:
Search unit 331, in sequence data At All Other Times, search nearest with the current time sequence data time interval and comprise the last bar time series data of temporal information;
Extraction unit 332, for extracting the timestamp of last bar time series data;
First acquiring unit 333, for using the timestamp of the timestamp of last bar time series data as current time sequence data; Or, originate timestamp time interval of identical adjacent two time series datas according to current time sequence data, calculate the time deviation between last bar time series data and current time sequence data timestamp, by the timestamp of last bar time series data and time deviation and, as the timestamp of current time sequence data;
First judging unit 334, for when in sequence data At All Other Times, when not finding last bar time series data, judges whether comprise temporal information in the file attribute of current time sequence data;
Second acquisition unit 335, for when comprising temporal information in file attribute, using the timestamp of the temporal information in file attribute as current time sequence data;
First determining unit 336, for when not comprising temporal information in file attribute, determines the uplink time of current time sequence data;
3rd acquiring unit 337, for using the timestamp of the uplink time of current time sequence data as current time sequence data;
Second judging unit 338, for judge current time sequence data file attribute in whether comprise temporal information; When comprising temporal information in file attribute, using the timestamp of the temporal information in file attribute as current time sequence data;
Second determining unit 339, for determining the uplink time of current time sequence data; Using the timestamp of the uplink time of current time sequence data as current time sequence data.
Optionally, judge module 32, also can be used for the information judging whether to comprise Preset Time stamp form in current time sequence data; When current time sequence data comprises the information of Preset Time stamp form, judge to comprise temporal information in current time sequence data; Otherwise, judge not comprise temporal information in current time sequence data.
Optionally, as shown in Figure 5, said apparatus also can comprise:
Second acquisition module 34, for when comprising temporal information in current time sequence data, using the timestamp of the information of Preset Time stamp form in current time sequence data as current time sequence data.
Adopt the acquisition device of the timestamp of a kind of time series data in the present embodiment, for the time series data not comprising temporal information, can according to the timestamp of the temporal information acquisition time sequence data of its relevant information, thus corresponding timestamp can both be got to all time series datas, there is versatility, and provide convenience for follow-up analysis data, the result avoiding the shortage of material time data to cause produces deviation.
Those skilled in the art should understand, embodiments of the invention can be provided as method, system or computer program.Therefore, the present invention can adopt the form of complete hardware embodiment, completely software implementation or the embodiment in conjunction with software and hardware aspect.And the present invention can adopt in one or more form wherein including the upper computer program implemented of computer-usable storage medium (including but not limited to magnetic disk memory and optical memory etc.) of computer usable program code.
The present invention describes with reference to according to the process flow diagram of the method for the embodiment of the present invention, equipment (system) and computer program and/or block scheme.Should understand can by the combination of the flow process in each flow process in computer program instructions realization flow figure and/or block scheme and/or square frame and process flow diagram and/or block scheme and/or square frame.These computer program instructions can being provided to the processor of multi-purpose computer, special purpose computer, Embedded Processor or other programmable data processing device to produce a machine, making the instruction performed by the processor of computing machine or other programmable data processing device produce device for realizing the function of specifying in process flow diagram flow process or multiple flow process and/or block scheme square frame or multiple square frame.
These computer program instructions also can be stored in can in the computer-readable memory that works in a specific way of vectoring computer or other programmable data processing device, the instruction making to be stored in this computer-readable memory produces the manufacture comprising command device, and this command device realizes the function of specifying in process flow diagram flow process or multiple flow process and/or block scheme square frame or multiple square frame.
These computer program instructions also can be loaded in computing machine or other programmable data processing device, make on computing machine or other programmable device, to perform sequence of operations step to produce computer implemented process, thus the instruction performed on computing machine or other programmable device is provided for the step realizing the function of specifying in process flow diagram flow process or multiple flow process and/or block scheme square frame or multiple square frame.
Obviously, those skilled in the art can carry out various change and modification to the present invention and not depart from the spirit and scope of the present invention.Like this, if these amendments of the present invention and modification belong within the scope of the claims in the present invention and equivalent technologies thereof, then the present invention is also intended to comprise these change and modification.

Claims (12)

1. an acquisition methods for the timestamp of time series data, is characterized in that, comprising:
Read current time sequence data;
Judge whether comprise temporal information in described current time sequence data;
When not comprising temporal information in described current time sequence data, according to the temporal information of the relevant information of described current time sequence data, obtain the timestamp of described current time sequence data.
2. method according to claim 1, is characterized in that,
Described relevant information is identical sequence data At All Other Times of originating with described current time sequence data;
Described when not comprising temporal information in described current time sequence data, obtain the timestamp of described current time sequence data according to the temporal information of the relevant information of described current time sequence data, comprising:
In described sequence data At All Other Times, search nearest with the described current time sequence data time interval and comprise the last bar time series data of temporal information;
Extract the timestamp of described last bar time series data;
Using the timestamp of the timestamp of described last bar time series data as described current time sequence data; Or, originate timestamp time interval of identical adjacent two time series datas according to described current time sequence data, calculate the time deviation between described last bar time series data and described current time sequence data timestamp, by the timestamp of described last bar time series data and described time deviation and, as the timestamp of described current time sequence data.
3. method according to claim 2, it is characterized in that, described when not comprising temporal information in described current time sequence data, according to the temporal information of the relevant information of described current time sequence data, obtain the time of described current time sequence data, also comprise:
When in described sequence data At All Other Times, when not finding described last bar time series data, judge whether comprise temporal information in the file attribute of described current time sequence data;
When comprising temporal information in described file attribute, using the timestamp of the temporal information in described file attribute as described current time sequence data.
4. method according to claim 3, it is characterized in that, described judge whether comprise temporal information in the file attribute of described current time sequence data after, described when not comprising temporal information in described current time sequence data, according to the temporal information of the relevant information of described current time sequence data, obtain the time of described current time sequence data, also comprise:
When not comprising temporal information in described file attribute, determine the uplink time of described current time sequence data;
Using the timestamp of the uplink time of described current time sequence data as described current time sequence data.
5. method according to claim 1, is characterized in that,
Describedly judge whether comprise temporal information in described current time sequence data, comprising:
Judge the information whether comprising Preset Time stamp form in described current time sequence data; When described current time sequence data comprises the information of Preset Time stamp form, judge to comprise temporal information in described current time sequence data; Otherwise, judge not comprise temporal information in described current time sequence data;
Described method also comprises:
When comprising temporal information in described current time sequence data, using the timestamp of the information of Preset Time stamp form in described current time sequence data as described current time sequence data.
6. method according to claim 1, it is characterized in that, described when not comprising temporal information in described current time sequence data, according to the temporal information of the relevant information of described current time sequence data, obtain the timestamp of described current time sequence data, comprising:
Judge whether comprise temporal information in the file attribute of described current time sequence data; When comprising temporal information in described file attribute, using the timestamp of the temporal information in described file attribute as described current time sequence data; Or
Determine the uplink time of described current time sequence data; Using the timestamp of the uplink time of described current time sequence data as described current time sequence data.
7. an acquisition device for the timestamp of time series data, is characterized in that, comprising:
Read module, for reading current time sequence data;
Judge module, for judging whether comprise temporal information in described current time sequence data;
First acquisition module, for when not comprising temporal information in described current time sequence data, according to the temporal information of the relevant information of described current time sequence data, obtains the timestamp of described current time sequence data.
8. device according to claim 7, is characterized in that, described first acquisition module comprises:
Search unit, in described sequence data At All Other Times, search nearest with the described current time sequence data time interval and comprise the last bar time series data of temporal information;
Extraction unit, for extracting the timestamp of described last bar time series data;
First acquiring unit, for using the timestamp of the timestamp of described last bar time series data as described current time sequence data; Or, originate timestamp time interval of identical adjacent two time series datas according to described current time sequence data, calculate the time deviation between described last bar time series data and described current time sequence data timestamp, by the timestamp of described last bar time series data and described time deviation and, as the timestamp of described current time sequence data.
9. device according to claim 8, is characterized in that, described first acquisition module also comprises:
First judging unit, for when in described sequence data At All Other Times, when not finding described last bar time series data, judges whether comprise temporal information in the file attribute of described current time sequence data;
Second acquisition unit, for when comprising temporal information in described file attribute, using the timestamp of the temporal information in described file attribute as described current time sequence data.
10. device according to claim 9, is characterized in that, described first acquisition module also comprises:
First determining unit, for when not comprising temporal information in described file attribute, determines the uplink time of described current time sequence data;
3rd acquiring unit, for using the timestamp of the uplink time of described current time sequence data as described current time sequence data.
11. devices according to claim 7, is characterized in that,
Described judge module, also for judging the information whether comprising Preset Time stamp form in described current time sequence data; When described current time sequence data comprises the information of Preset Time stamp form, judge to comprise temporal information in described current time sequence data; Otherwise, judge not comprise temporal information in described current time sequence data;
Described device also comprises:
Second acquisition module, for when comprising temporal information in described current time sequence data, using the timestamp of the information of Preset Time stamp form in described current time sequence data as described current time sequence data.
12. devices according to claim 7, is characterized in that, described first acquisition module comprises:
Second judging unit, for judge described current time sequence data file attribute in whether comprise temporal information; When comprising temporal information in described file attribute, using the timestamp of the temporal information in described file attribute as described current time sequence data;
Second determining unit, for determining the uplink time of described current time sequence data; Using the timestamp of the uplink time of described current time sequence data as described current time sequence data.
CN201410441720.1A 2014-09-01 2014-09-01 Time sequence data timestamp obtaining method and device Pending CN104239448A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410441720.1A CN104239448A (en) 2014-09-01 2014-09-01 Time sequence data timestamp obtaining method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410441720.1A CN104239448A (en) 2014-09-01 2014-09-01 Time sequence data timestamp obtaining method and device

Publications (1)

Publication Number Publication Date
CN104239448A true CN104239448A (en) 2014-12-24

Family

ID=52227507

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410441720.1A Pending CN104239448A (en) 2014-09-01 2014-09-01 Time sequence data timestamp obtaining method and device

Country Status (1)

Country Link
CN (1) CN104239448A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105653940A (en) * 2015-07-14 2016-06-08 哈尔滨安天科技股份有限公司 Method and system for analyzing attacker source based on PE files
CN110245374A (en) * 2019-04-26 2019-09-17 广州明珞汽车装备有限公司 A kind of process timing sequence compartment analysis method, system, device and storage medium
CN112527862A (en) * 2020-12-10 2021-03-19 国网河北省电力有限公司雄安新区供电公司 Time sequence data processing method and device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7447666B2 (en) * 2004-04-09 2008-11-04 The Boeing Company System and method for analyzing a pattern in a time-stamped event sequence
CN101641674A (en) * 2006-10-05 2010-02-03 斯普兰克公司 Time series search engine
CN102393830A (en) * 2011-06-28 2012-03-28 用友软件股份有限公司 Data processing time acquisition method and device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7447666B2 (en) * 2004-04-09 2008-11-04 The Boeing Company System and method for analyzing a pattern in a time-stamped event sequence
CN101641674A (en) * 2006-10-05 2010-02-03 斯普兰克公司 Time series search engine
CN102393830A (en) * 2011-06-28 2012-03-28 用友软件股份有限公司 Data processing time acquisition method and device

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105653940A (en) * 2015-07-14 2016-06-08 哈尔滨安天科技股份有限公司 Method and system for analyzing attacker source based on PE files
CN105653940B (en) * 2015-07-14 2019-02-26 哈尔滨安天科技股份有限公司 A kind of method and system based on PE file analysis attacker source
CN110245374A (en) * 2019-04-26 2019-09-17 广州明珞汽车装备有限公司 A kind of process timing sequence compartment analysis method, system, device and storage medium
CN112527862A (en) * 2020-12-10 2021-03-19 国网河北省电力有限公司雄安新区供电公司 Time sequence data processing method and device

Similar Documents

Publication Publication Date Title
CN104850641A (en) Information recommendation method and device
CN105677716A (en) Computer data acquisition, processing and analysis system
CN103605664A (en) Massive dynamic data fast query method meeting different time granularity requirements
CN104657387A (en) Data query method and device
CN104504120A (en) Detection method and device for similar pictures
KR20200121744A (en) Method and device for processing user personal, server and storage medium
CN104484392A (en) Method and device for generating database query statement
CN102521374A (en) Intelligent data aggregation method and intelligent data aggregation system based on relational online analytical processing
CN104239448A (en) Time sequence data timestamp obtaining method and device
CN102609501A (en) Data cleaning method based on real-time historical database
CN104216977A (en) Time series data search method and device
CN106407233B (en) A kind of data processing method and equipment
MY193689A (en) Method and device for generating access point attribute information of wireless access point
CN104778252A (en) Index storage method and index storage device
CN112199443B (en) Data synchronization method and device, computer equipment and storage medium
CN103514284A (en) Data display system and data display method
CN103853771A (en) Search result pushing method and search result pushing system
CN105260465A (en) Graph data processing service method and apparatus
CN104134112A (en) Business process model consistency measurement method under semantic constraints
CN104850623A (en) Dynamic extension method and system for multidimensional data analysis model
CN105354224A (en) Knowledge data processing method and apparatus
CN105119743A (en) Acquisition method of user behavior intention and apparatus
CN104808995A (en) Method and device for storing application contents over applications
CN105447064A (en) Electronic map data making method and using method and apparatus therefor
CN104182797A (en) Automatic selection method of product part number on the basis of image recognition technology

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20141224