CN112202804A - NDC standard-oriented time countdown acquisition method and related device - Google Patents
NDC standard-oriented time countdown acquisition method and related device Download PDFInfo
- Publication number
- CN112202804A CN112202804A CN202011083280.9A CN202011083280A CN112202804A CN 112202804 A CN112202804 A CN 112202804A CN 202011083280 A CN202011083280 A CN 202011083280A CN 112202804 A CN112202804 A CN 112202804A
- Authority
- CN
- China
- Prior art keywords
- time
- message
- processed
- ndc
- information
- 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.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 41
- 238000004364 calculation method Methods 0.000 claims description 10
- 230000010006 flight Effects 0.000 abstract description 3
- 230000003287 optical effect Effects 0.000 description 6
- 230000006870 function Effects 0.000 description 4
- 238000010586 diagram Methods 0.000 description 3
- 238000012545 processing Methods 0.000 description 3
- 239000003795 chemical substances by application Substances 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 239000013307 optical fiber Substances 0.000 description 2
- 230000000644 propagated effect Effects 0.000 description 2
- 239000004065 semiconductor Substances 0.000 description 2
- 101100476308 Neurospora crassa (strain ATCC 24698 / 74-OR23-1A / CBS 708.71 / DSM 1257 / FGSC 987) hel-2 gene Proteins 0.000 description 1
- 230000004931 aggregating effect Effects 0.000 description 1
- 238000003491 array Methods 0.000 description 1
- 238000004891 communication Methods 0.000 description 1
- 238000004883 computer application Methods 0.000 description 1
- 238000004590 computer program Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000011144 upstream manufacturing Methods 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L69/00—Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
- H04L69/22—Parsing or analysis of headers
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/24—Querying
- G06F16/245—Query processing
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/29—Geographical information databases
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q10/00—Administration; Management
- G06Q10/10—Office automation; Time management
- G06Q10/109—Time management, e.g. calendars, reminders, meetings or time accounting
- G06Q10/1093—Calendar-based scheduling for persons or groups
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q50/00—Information and communication technology [ICT] specially adapted for implementation of business processes of specific business sectors, e.g. utilities or tourism
- G06Q50/40—Business processes related to the transportation industry
Landscapes
- Engineering & Computer Science (AREA)
- Business, Economics & Management (AREA)
- Theoretical Computer Science (AREA)
- Human Resources & Organizations (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Data Mining & Analysis (AREA)
- Databases & Information Systems (AREA)
- Strategic Management (AREA)
- General Business, Economics & Management (AREA)
- Entrepreneurship & Innovation (AREA)
- Tourism & Hospitality (AREA)
- General Engineering & Computer Science (AREA)
- Marketing (AREA)
- Economics (AREA)
- Computer Security & Cryptography (AREA)
- Computational Linguistics (AREA)
- Operations Research (AREA)
- Quality & Reliability (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Remote Sensing (AREA)
- Health & Medical Sciences (AREA)
- General Health & Medical Sciences (AREA)
- Primary Health Care (AREA)
- Electric Clocks (AREA)
Abstract
The application discloses an NDC standard-oriented time countdown acquisition method and a related device, the NDC standard-oriented time countdown acquisition method firstly acquires time field configuration in a message to be processed and time zone and daylight saving time information contained in the message to be processed, then calculates a time field value contained in the message to be processed according to the acquired time zone and daylight saving time information and the time field configuration, and finally calculates the time countdown of the message to be processed according to the current time and the time field value contained in the message to be processed, in the embodiment, the difference between the current time and the time field value contained in the message to be processed is finally acquired, and the problem that the understanding of a user or a navigation department to the time field value is deviated due to different NDC standards adopted by the message to be processed is solved, the situation that the user misses flights and the like due to the understanding deviation of the time field value is avoided.
Description
Technical Field
The present application relates to the field of computer application technologies, and in particular, to a method and a related apparatus for acquiring a time countdown oriented to an NDC standard.
Background
New Distribution Capability (NDC) is a component of International Air Transport Association (IATA) New aviation retail, which is a concept proposed for a New trend of future aviation industry development. In particular, NDC is a set of XML-based communication standards that enable airlines to provide their customers with more product and service options in real-time and precisely over a wider distribution channel. The NDC standard is still evolving, with IATA updating at a rate of 2 releases per year, with earlier releases not taking into account compatibility.
In the sales scenario envisaged by NDC, three main sales roles are divided: airline (Airline department) is a provider of aviation products; a Seller (agent) is a Seller directly facing the final passenger; the Aggregator is a technical channel for aggregating a plurality of upstream airline resources and uniformly providing the resources to downstream agents, so that the technical cost of the whole industry is saved.
However, in the actual application process, it is found that the NDC standards of the message applications of different navigation systems may be different, which may cause difficulty in understanding the messages between the navigation systems to increase, and in addition, the time in the message is significant for the user, and once the navigation system has an error in understanding the time in the message, the user may miss flights and other serious problems.
Disclosure of Invention
In order to solve the technical problem, the present application provides an NDC standard-oriented method and a related device for acquiring time countdown, so as to achieve the purpose of accurately acquiring time countdown in to-be-processed messages of different NDC standards.
In order to achieve the technical purpose, the embodiment of the application provides the following technical scheme:
an NDC standard-oriented time countdown acquisition method comprises the following steps:
acquiring a message to be processed;
acquiring time field configuration in the message to be processed; the time field is configured to indicate the type of the time information in the message to be processed; the time information category comprises at least one of departure place time, destination time, selling place time and Greenwich mean time;
acquiring time zone and daylight saving time information contained in the message to be processed;
calculating a time field value contained in the message to be processed according to the acquired time zone and daylight saving time information and the time field configuration;
and calculating the time countdown of the message to be processed according to the current time and the time field value contained in the message to be processed.
An acquisition system for time countdown oriented to the NDC standard, comprising:
the message acquisition module is used for acquiring a message to be processed;
the field configuration module is used for acquiring time field configuration in the message to be processed; the time field is configured to indicate the type of the time information in the message to be processed; the time information category comprises at least one of departure place time, destination time, selling place time and Greenwich mean time;
a time zone obtaining module, configured to obtain time zone and daylight saving time information included in the message to be processed;
the first calculation module is used for calculating a time field value contained in the message to be processed according to the acquired time zone and daylight saving time information and the time field configuration;
and the second calculation module is used for calculating the time countdown of the message to be processed according to the current time and the time field value contained in the message to be processed.
An acquisition system for time countdown oriented to the NDC standard, comprising: a memory and a processor;
the memory is configured to store a program code, and the processor is configured to call the program code, and the program code is configured to execute any one of the above-mentioned NDC standard-oriented time countdown acquiring methods.
A storage medium having stored thereon program code that, when executed, implements any of the NDC standard oriented time countdown acquisition methods described above.
It can be seen from the foregoing technical solutions that, in the present application, an obtaining method of time countdown for the NDC standard and a related device are provided, where the obtaining method of time countdown for the NDC standard first obtains a time field configuration in a to-be-processed message and time zone and daylight saving time information included in the to-be-processed message, then calculates a time field value included in the to-be-processed message according to the obtained time zone and daylight saving time information and the time field configuration, and finally calculates the time countdown of the to-be-processed message according to a current time and the time field value included in the to-be-processed message, in this embodiment, a difference between the current time and the time field value included in the to-be-processed message is finally obtained, and a problem that understanding of a user or a navigation system about the time field value is deviated due to a difference between the NDC standards adopted by the to-be-processed message is solved, the situation that the user misses flights and the like due to the understanding deviation of the time field value is avoided.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, it is obvious that the drawings in the following description are only embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
Fig. 1 is a schematic flowchart of a method for acquiring a time countdown oriented to the NDC standard according to an embodiment of the present application;
fig. 2 is a schematic flowchart of a method for acquiring a time countdown oriented to the NDC standard according to another embodiment of the present application;
fig. 3 is an airdraping return message segment of an a1 navigation server according to the first embodiment of the present application;
fig. 4 is an airdraping return message segment of an a2 navigation server according to the first embodiment of the present application;
FIG. 5 is a diagram illustrating context information of a message to be processed for obtaining sales location information;
fig. 6 is a standard message corresponding to a message to be processed of a1 navigation server finally obtained in the first embodiment;
fig. 7 is a standard message corresponding to a message to be processed of a2 navigation server finally obtained in the first embodiment;
fig. 8 is a message to be processed according to the second embodiment;
fig. 9 is a standard packet corresponding to a packet to be processed finally obtained in the first embodiment;
fig. 10 is a schematic structural diagram of an acquisition system for time countdown facing the NDC standard according to an embodiment of the present application;
fig. 11 is a schematic structural diagram of an acquisition system for time countdown facing the NDC standard according to another embodiment of the present application.
Detailed Description
As described in the background art, the NDC standards adopted by the messages of different airlines may be different, which requires that the messages of different airlines are converted into the unified NDC standard.
There are many places in the NDC standard message that relate to time, and this time information is important to the passenger. But due to the differences in the above-mentioned NDC standard versions and the differences in understanding and use among airlines, there are also factors of the airline business itself, concerning the various time zones of origin, destination, sales location, and special situations in some countries, etc. The location, format and meaning of relevant times such as query expiration, departure arrival time of the aircraft, order expiration, etc. may vary depending on a variety of factors listed above. And even if the new distribution standard is the same version, the time is different based on the understanding of the navigation department, and some meetings use the time of the sales place, some meetings use the time of the departure place, some meetings use the Greenwich mean time, and the like. These can be annoying to downstream ticket sales channels and end passengers, requiring a lot of extra work to record what each airline driver represents at the corresponding time.
In view of this, an embodiment of the present application provides a method for acquiring a time countdown facing an NDC standard, including:
acquiring a message to be processed;
acquiring time field configuration in the message to be processed; the time field is configured to indicate the type of the time information in the message to be processed; the time information category comprises at least one of departure place time, destination time, selling place time and Greenwich mean time;
acquiring time zone and daylight saving time information contained in the message to be processed;
calculating a time field value contained in the message to be processed according to the acquired time zone and daylight saving time information and the time field configuration;
and calculating the time countdown of the message to be processed according to the current time and the time field value contained in the message to be processed.
The method for acquiring the time countdown facing the NDC standard firstly acquires the time field configuration in the message to be processed and the time zone and daylight saving time information contained in the message to be processed, then calculating the time field value contained in the message to be processed according to the acquired time zone and daylight saving time information and the time field configuration, and finally calculating the time countdown of the message to be processed according to the current time and the time field value contained in the message to be processed, in this embodiment, the difference between the current time and the time field value contained in the message to be processed is finally obtained, the problem that the understanding of the user or the airline department to the time field value is deviated due to different NDC standards adopted by the message to be processed is solved, and the situation that the user misses the flight due to the understanding deviation of the time field value is avoided.
Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While certain embodiments of the present disclosure are shown in the drawings, it is to be understood that the present disclosure may be embodied in various forms and should not be construed as limited to the embodiments set forth herein, but rather are provided for a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the disclosure are for illustration purposes only and are not intended to limit the scope of the disclosure.
The term "include" and variations thereof as used herein are open-ended, i.e., "including but not limited to". The term "based on" is "based, at least in part, on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". Relevant definitions for other terms will be given in the following description.
It should be noted that the terms "first", "second", and the like in the present disclosure are only used for distinguishing different devices, modules or units, and are not used for limiting the order or interdependence relationship of the functions performed by the devices, modules or units.
It is noted that references to "a", "an", and "the" modifications in this disclosure are intended to be illustrative rather than limiting, and that those skilled in the art will recognize that "one or more" may be used unless the context clearly dictates otherwise.
The embodiment of the present application provides a method for acquiring a time countdown oriented to an NDC standard, as shown in fig. 1, the method includes:
s101: acquiring a message to be processed;
s102: acquiring time field configuration in the message to be processed; the time field is configured to indicate the type of the time information in the message to be processed; the time information category comprises at least one of departure place time, destination time, selling place time and Greenwich mean time;
s103: acquiring time zone and daylight saving time information contained in the message to be processed;
s104: calculating a time field value contained in the message to be processed according to the acquired time zone and daylight saving time information and the time field configuration;
s105: and calculating the time countdown of the message to be processed according to the current time and the time field value contained in the message to be processed.
The method for acquiring the time countdown facing the NDC standard firstly acquires the time field configuration in the message to be processed and the time zone and daylight saving time information contained in the message to be processed, then calculating the time field value contained in the message to be processed according to the acquired time zone and daylight saving time information and the time field configuration, and finally calculating the time countdown of the message to be processed according to the current time and the time field value contained in the message to be processed, in this embodiment, the difference between the current time and the time field value contained in the message to be processed is finally obtained, the problem that the understanding of the user or the airline department to the time field value is deviated due to different NDC standards adopted by the message to be processed is solved, and the situation that the user misses the flight due to the understanding deviation of the time field value is avoided.
The following describes steps of the method for acquiring a time countdown oriented to the NDC standard according to the embodiment of the present application.
Specifically, in an embodiment of the present application, referring to fig. 2, the obtaining the configuration of the time field in the to-be-processed message includes:
s1021: and acquiring information to be processed in the message to be processed, wherein the information to be processed at least comprises a navigation driver name, an NDC interface name and a message object.
S1022: inquiring a preset database according to the navigation driver name and the NDC interface name to acquire basic data and time configuration data corresponding to the navigation driver name and the NDC interface name; and the preset database stores the corresponding relation between the name of the navigation driver and the name of the NDC interface and the basic data and the time configuration data.
S1023: and acquiring time field configuration contained in the message object according to the acquired basic data and the acquired time configuration data.
The acquiring the time zone and daylight saving time information contained in the message to be processed includes:
s1031: and acquiring the position information included in the message to be processed, and acquiring time zone and daylight saving time information corresponding to the position information according to the position information.
In step S1031, the location information may be information of a specific departure place, a specific destination, or a specific selling place indicated in the to-be-processed message, and may be a city, an airport, or a country. Some messages to be processed may not have the information, and need to be obtained from the context, and the process of obtaining the location information from the context is well known to those skilled in the art, and is not described herein again.
For step S104, the calculating a time field value included in the to-be-processed message according to the acquired time zone and daylight saving time information and the time field configuration includes:
s1041: and calculating the time field value of the message object in the message to be processed according to the time zone and daylight saving time information corresponding to the position information, the acquired basic data and time configuration data and the time field configuration.
The time field value of the message object in the message to be processed is specific time information (for example, an Offer validity period, departure time, arrival time, and the like, where Offer refers to flight space, brand freight rate, additional services, usage rules, and the like returned by an airline operator) included in the message to be processed.
For step S105, the calculating the time countdown of the message to be processed according to the current time and the time field value included in the message to be processed includes:
s1051: and calculating the difference value between the time field value contained in the message to be processed and the current time, and determining the calculated difference value as the time countdown of the message to be processed.
In the specific calculation process of step S1051, it is generally necessary to convert the current time into a time information type that is the same as the time field value included in the to-be-processed message, and then calculate the difference between the current time and the time field value included in the to-be-processed message. For example, when the time information type of the time field value included in the to-be-processed message is greenwich time, and the time information type of the current time is sales time (for example, beijing time), the time information type of the current time needs to be converted into greenwich time, and then the difference between the time information type of the current time and the time field value included in the to-be-processed message is calculated.
The method for acquiring the NDC standard-oriented time countdown provided by the present application is described below with reference to specific embodiments.
The first embodiment is as follows: obtaining Offer validity period in AirShopping return text
The air forwarding is the first interface to be called in the NDC service, and mainly functions to query available Offer according to OD (O is starting point, origin.d is arrival point, destination. The AirShopping return of each navigation department includes a plurality of optional Offer provided by the navigation department, each Offer has a key time information, namely, an Offer expiration time, if the client wants to subscribe to the Offer, the client needs to further acquire a detailed Offer of the Offer and place an order before the expiration time.
For comparison, the airshipping returned results of 2 different navigation systems are selected, and navigation system information is hidden and replaced by A1 and A2.
(1) Firstly, taking an AirShopping return message as a message to be processed, and acquiring information to be processed in the message to be processed, wherein the information to be processed at least comprises a navigation name, an NDC interface name and a message object.
Referring to fig. 3 and 4, fig. 3 and 4 are airshipping return message segments of two airlines a1 and a2, respectively, and it can be seen that there is Z at the end of the Offer expiration time of a1 airline, which represents that greenwich time is used, but there is no Z at the end, which only tells the reader the meaning of the time in advance, so that the reader can better understand the time. The meaning of this time is actually determined in the subsequent steps of the patent. The Offer expiration time of the a2 airline is not Z at the end, and the actual a2 airline uses the time of the place of sale, which refers to the place of sale where the Seller that initiated the air shopping request is located, in this example hong kong, and this information can be obtained from the corresponding request, which will also be explained in the subsequent steps.
It can be seen that the message formats of 2 navigation departments are very different, because the 2 navigation departments use different NDC standards respectively, and the a2 navigation department gives a payment time limit besides the Offer expiration time, which also indicates that there are really many kinds of such critical time information in the NDC.
(2) And then obtaining the time field configuration of the message to be processed.
As shown in the above table, the preset database information can obtain all time-related configuration information (i.e., time field configuration) in the navigation department interface message according to the navigation department code and the interface name, and the above table is the configuration of the Offer validity field intercepted and related to the first embodiment. The information can be stored in a cache mode and can be directly obtained from the cache when in use, so that the query efficiency is improved, and the database pressure is reduced.
From the configuration information, we can see the actual location of the Offer validity field of the a1 owner in the message, and its time type. The time type values include Z, O, D and S, Z represents Greenwich mean time, O represents departure time, D represents arrival time, and S represents sales time.
(3) And acquiring the time zone and daylight saving time information contained in the message to be processed.
In this embodiment, a1 airline uses greenwich time, which is standard time, so no additional information needs to be obtained.
The key point is that a2 navigation is used, and as can be seen from the configuration information obtained in step 2, the Offer validity period of the a2 navigation uses the time of the sales place, and since there is no information of the sales place in the airshoppengrs, it is necessary to obtain the relevant context information through other services, in this example, it is actually obtained from the request (airshoppengrq) corresponding to the return, and the specific information is shown in fig. 5.
The sale place of the system can be HKG (hong Kong) according to the context information, then the time zone information of hong Kong is obtained, and the service for obtaining the basic information can be provided by other modules additionally arranged in the system, which is not described in detail herein. The time zone information is as follows:
city code | Time zone | Beginning time of summer time | Ending time of summer | Offset of summer time |
HKG | 8 | 0 |
Time zone and daylight savings time information for hong kong is shown above.
(4) And calculating the time field value and the time countdown contained in the message to be processed according to a preset NDC standard.
In the present embodiment, it is assumed that the predetermined NDC standard uses greenwich mean time for the validity period of Offer returned in the airshoppengrs. For A1 airline, since A1 airline also uses Greenwich's time, no calculation is performed in time, and the time with A1 airline is "2020-06-12T 07:49: 53Z".
What is now needed is to calculate the countdown difference from the current time. Assuming that the Beijing time is used by the system, the recorded time at the time is '2020-06-1215: 19: 56', the Greenwich mean is converted into '2020-06-1207: 19: 56', and finally, the countdown difference value between the current time and the Offer validity time is calculated as 'PT 29M 57S'.
For A2 navigation, Offer validity period uses the time of sale of hong Kong, which is "2020-06-12T 15:42: 24", and converts to Greenwich mean time, which is "2020-06-12T 07:42: 24Z", and then calculates the countdown difference value as in A1 navigation, and then the recorded time is "2020-06-1215: 22: 47", and calculates the countdown difference value as "PT 19M 37S".
(5) Finally, the converted standard message can be given.
The required information is already calculated in the previous step, and the calculated results are only assigned to the corresponding message fields of the standard messages in the step.
The standard message corresponding to the a1 navigation department is shown in fig. 6.
The standard message corresponding to the a2 navigation department is shown in fig. 7.
As shown in fig. 6 and fig. 7, the CountDown attribute is a CountDown time according to the embodiment of the present application, and this attribute is not defined in the NDC standard of IATA, and may be used or not used by the user, and through this CountDown information, the user may know clearly how long the Offer validity period expires.
Example two: and acquiring the takeoff and arrival time.
The specific steps are the same as those in the first embodiment, and only a brief description is given below. The second embodiment mainly embodies the processing of different types of time and the processing of time zone daylight saving time. The flight controllers are basically consistent in the departure time and the arrival time, the departure time and the arrival time are respectively used, and therefore only one flight controller is used for description in the example.
(1) The message to be processed is shown in fig. 8.
The original pending messages are shown in fig. 8, which are the departure and arrival information for a flight segment, from AMS (amsterdam, netherlands) to HEL (helsinki, finland). The takeoff time is "2020-07-15T 11: 40:00 ", the arrival time is" 2020-07-15T15:05:00 ", and the local time is used.
(2) And acquiring the time field configuration of the message to be processed.
Through the configuration information, it can be seen that the time field types corresponding to the message are O (departure place) and D (arrival place).
(3) And acquiring the time zone and daylight saving time information contained in the message to be processed.
In this embodiment, the specific information of the departure place and the arrival place is in the message, and the time zone and daylight saving time information are obtained according to the specific departure place and the arrival place without inquiring the context information, as follows:
city code | Time zone | Beginning time of summer time | Ending time of summer | Offset of summer time |
AMS | 1 | 2020-03-29 02:00 | 2020-10-25 03:00 | 1 |
HEL | 2 | 2020-03-29 03:00 | 2020-10-25 04:00 | 1 |
Here, the start and end times of daylight saving time mean local time.
(4) And calculating the time field value and the time countdown contained in the message to be processed according to a preset NDC standard.
In this embodiment, the predetermined NDC standard is also the departure point and arrival point time, so the time value does not need to be calculated, and the countdown value needs to be calculated.
The current time is '2020-06-1613: 16: 57', which is the time of the system and the Beijing time is used. And (3) uniformly converting the calculation time into Greenwich mean time, and then respectively converting the takeoff time, the arrival time and the current time into' 2020-07-15T 09: 40:00Z "," 2020-07-15T12:05:00Z "and" 2020-06-1605: 16:57 ".
The count-down differences between the takeoff and arrival times and the current time are further calculated as "P29 DT4H23M 3S" and "P29 DT6H48M 3S", respectively.
(5) Finally, the converted standard message can be provided as shown in fig. 9.
The names of messages or information exchanged between devices in the embodiments disclosed herein are for illustrative purposes only and are not intended to limit the scope of the messages or information.
Although the operations are depicted in a particular order, this should not be understood as requiring that such operations be performed in the particular order shown or in sequential order. Under certain circumstances, multitasking and parallel processing may be advantageous.
It should be understood that the various steps recited in the method embodiments of the present disclosure may be performed in a different order, and/or performed in parallel. Moreover, method embodiments may include additional steps and/or omit performing the illustrated steps. The scope of the present disclosure is not limited in this respect.
Computer program code for carrying out operations for the present disclosure may be written in any combination of one or more programming languages, including but not limited to an object oriented programming language such as Java, Smalltalk, C + +, and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
The NDC standard-oriented time countdown acquiring system provided in the embodiment of the present application is described below, and the NDC standard-oriented time countdown acquiring system described below may be referred to in correspondence with the NDC standard-oriented time countdown acquiring method described above.
Correspondingly, an embodiment of the present application further provides an NDC standard-oriented time countdown acquiring system, as shown in fig. 10, including:
a message obtaining module 10, configured to obtain a message to be processed;
a field configuration module 20, configured to obtain a time field configuration in the message to be processed; the time field is configured to indicate the type of the time information in the message to be processed; the time information category comprises at least one of departure place time, destination time, selling place time and Greenwich mean time;
a time zone obtaining module 30, configured to obtain time zone and daylight saving time information included in the to-be-processed message;
the first calculating module 40 is configured to calculate a time field value included in the to-be-processed message according to the acquired time zone and daylight saving time information and the time field configuration;
a second calculating module 50, configured to calculate a time countdown of the to-be-processed packet according to the current time and a time field value included in the to-be-processed packet.
The functions described herein above may be performed, at least in part, by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field Programmable Gate Arrays (FPGAs), Application Specific Integrated Circuits (ASICs), Application Specific Standard Products (ASSPs), systems on a chip (SOCs), Complex Programmable Logic Devices (CPLDs), and the like.
Optionally, the field configuration module 20 is specifically configured to acquire information to be processed in the message to be processed, where the information to be processed at least includes a navigation driver name, an NDC interface name, and a message object;
inquiring a preset database according to the navigation driver name and the NDC interface name to acquire basic data and time configuration data corresponding to the navigation driver name and the NDC interface name; the preset database stores the corresponding relation between the name of the navigation driver and the name of the NDC interface and the basic data and the time configuration data;
and acquiring time field configuration contained in the message object according to the acquired basic data and the acquired time configuration data.
Optionally, the time zone obtaining module 30 is specifically configured to obtain the location information included in the to-be-processed packet, and obtain a time zone and daylight saving time information corresponding to the location information according to the location information.
Optionally, the first calculating module 40 is specifically configured to calculate a time field value of a message object in the message to be processed according to the time zone and daylight saving time information corresponding to the location information, the acquired basic data and time configuration data, and the time field configuration.
Optionally, the second calculating module 50 is specifically configured to calculate a difference between a time field value included in the message to be processed and the current time, and determine the calculated difference as a time countdown of the message to be processed.
Correspondingly, an embodiment of the present application further provides an NDC standard-oriented time countdown acquiring system, as shown in fig. 11, including: a memory 100 and a processor 200;
the memory 100 is configured to store program code, and the processor 200 is configured to call the program code, and the program code is configured to:
acquiring a message to be processed;
acquiring time field configuration in the message to be processed; the time field is configured to indicate the type of the time information in the message to be processed; the time information category comprises at least one of departure place time, destination time, selling place time and Greenwich mean time;
acquiring time zone and daylight saving time information contained in the message to be processed;
calculating a time field value contained in the message to be processed according to the acquired time zone and daylight saving time information and the time field configuration;
and calculating the time countdown of the message to be processed according to the current time and the time field value contained in the message to be processed.
Correspondingly, an embodiment of the present application further provides a storage medium, where the storage medium stores program codes, and the program codes, when executed, implement the method for acquiring a time countdown oriented to the NDC standard according to any of the embodiments.
In the context of this disclosure, a storage medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The storage medium may be a machine-readable signal medium or a machine-readable storage medium. A storage medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
It should be noted that the storage media described above in this disclosure can be computer readable signal media or computer readable storage media or any combination of the two. A storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of storage media may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present disclosure, a storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In contrast, in the present disclosure, a storage medium may include a propagated data signal with computer-readable program code embodied therein, either in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A storage medium may also be any computer-readable medium that is not a computer-readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: electrical wires, optical cables, RF (radio frequency), etc., or any suitable combination of the foregoing.
The storage medium may be included in the electronic device; or may exist separately without being assembled into the electronic device.
Example 1 provides a method for acquiring a time countdown facing an NDC standard, including:
acquiring a message to be processed;
acquiring time field configuration in the message to be processed; the time field is configured to indicate the type of the time information in the message to be processed; the time information category comprises at least one of departure place time, destination time, selling place time and Greenwich mean time;
acquiring time zone and daylight saving time information contained in the message to be processed;
calculating a time field value contained in the message to be processed according to the acquired time zone and daylight saving time information and the time field configuration;
and calculating the time countdown of the message to be processed according to the current time and the time field value contained in the message to be processed.
In accordance with one or more embodiments disclosed herein, example 2 provides the method for acquiring the NDC standard-oriented time countdown of example 1, where acquiring the time field configuration in the to-be-processed message includes:
acquiring information to be processed in the message to be processed, wherein the information to be processed at least comprises a navigation driver name, an NDC interface name and a message object;
inquiring a preset database according to the navigation driver name and the NDC interface name to acquire basic data and time configuration data corresponding to the navigation driver name and the NDC interface name; the preset database stores the corresponding relation between the name of the navigation driver and the name of the NDC interface and the basic data and the time configuration data;
and acquiring time field configuration contained in the message object according to the acquired basic data and the acquired time configuration data.
In one or more embodiments disclosed herein, example 3 provides the method for acquiring the NDC standard-oriented time countdown of example 1, where the acquiring time zone and daylight saving time information included in the to-be-processed message includes:
and acquiring the position information included in the message to be processed, and acquiring time zone and daylight saving time information corresponding to the position information according to the position information.
In accordance with one or more embodiments disclosed herein, example 4 provides the method for acquiring a time countdown facing the NDC standard of example 1, where calculating a time field value included in the to-be-processed message according to the acquired time zone and daylight saving time information and the time field configuration includes:
and calculating the time field value of the message object in the message to be processed according to the time zone and daylight saving time information corresponding to the position information, the acquired basic data and time configuration data and the time field configuration.
According to one or more embodiments disclosed in the present application, example 5 provides the method for acquiring the NDC standard-oriented time countdown of example 1, where calculating the time countdown of the to-be-processed packet according to the current time and a time field value included in the to-be-processed packet includes:
and calculating the difference value between the time field value contained in the message to be processed and the current time, and determining the calculated difference value as the time countdown of the message to be processed.
Example 6 provides, in accordance with one or more embodiments disclosed herein, an NDC standard oriented time countdown acquisition system, including:
the message acquisition module is used for acquiring a message to be processed;
the field configuration module is used for acquiring time field configuration in the message to be processed; the time field is configured to indicate the type of the time information in the message to be processed; the time information category comprises at least one of departure place time, destination time, selling place time and Greenwich mean time;
a time zone obtaining module, configured to obtain time zone and daylight saving time information included in the message to be processed;
the first calculation module is used for calculating a time field value contained in the message to be processed according to the acquired time zone and daylight saving time information and the time field configuration;
and the second calculation module is used for calculating the time countdown of the message to be processed according to the current time and the time field value contained in the message to be processed.
According to one or more embodiments disclosed in the present application, example 7 provides the system for acquiring an NDC standard-oriented time countdown in example 1, where the field configuration module is specifically configured to acquire to-be-processed information in the to-be-processed message, where the to-be-processed information at least includes a driver name, an NDC interface name, and a message object;
inquiring a preset database according to the navigation driver name and the NDC interface name to acquire basic data and time configuration data corresponding to the navigation driver name and the NDC interface name; the preset database stores the corresponding relation between the name of the navigation driver and the name of the NDC interface and the basic data and the time configuration data;
and acquiring time field configuration contained in the message object according to the acquired basic data and the acquired time configuration data.
According to one or more embodiments disclosed in the present application, example 8 provides the system for acquiring a time countdown facing the NDC standard of example 1, where the time zone acquisition module is specifically configured to acquire the location information included in the message to be processed, and acquire the time zone and the daylight saving time information corresponding to the location information according to the location information.
According to one or more embodiments disclosed in the present application, example 9 provides the system for acquiring a time countdown facing the NDC standard of example 1, where the first calculating module is specifically configured to calculate a time field value of a message object in the message to be processed according to time zone and daylight saving time information corresponding to the location information, the acquired basic data and time configuration data, and the time field configuration.
According to one or more embodiments disclosed in the present application, example 10 provides the system for acquiring a time countdown facing the NDC standard of example 1, where the second calculating module is specifically configured to calculate a difference between a time field value included in the message to be processed and the current time, and determine the calculated difference as the time countdown of the message to be processed.
Example 11 provides, in accordance with one or more embodiments disclosed herein, an NDC standard oriented time countdown acquisition system, including: a memory and a processor;
the memory is configured to store a program code, and the processor is configured to call the program code, where the program code is configured to execute the NDC standard-oriented time countdown acquiring method according to any of the embodiments.
Example 11 provides, in accordance with one or more embodiments disclosed herein, a storage medium having program code stored thereon, the program code, when executed, implementing the steps of the NDC standard oriented time countdown acquiring method according to any of the embodiments described above.
Although the subject matter has been described in language specific to structural features and/or methodological acts, it is to be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or acts described above. Rather, the specific features and acts described above are disclosed as example forms of implementing the claims.
While several specific implementation details are included in the above discussion, these should not be construed as limitations on the scope of the disclosure. Certain features that are described in the context of separate embodiments can also be implemented in combination in a single embodiment. Conversely, various features that are described in the context of a single embodiment can also be implemented in multiple embodiments separately or in any suitable subcombination.
The foregoing description is only exemplary of the preferred embodiments of the disclosure and is illustrative of the principles of the technology employed. It will be appreciated by those skilled in the art that the scope of the disclosure herein is not limited to the particular combination of features described above, but also encompasses other embodiments in which any combination of the features described above or their equivalents does not depart from the spirit of the disclosure. For example, the above features and (but not limited to) the features disclosed in this disclosure having similar functions are replaced with each other to form the technical solution.
Claims (12)
1. An NDC standard-oriented time countdown acquisition method is characterized by comprising the following steps:
acquiring a message to be processed;
acquiring time field configuration in the message to be processed; the time field is configured to indicate the type of the time information in the message to be processed; the time information category comprises at least one of departure place time, destination time, selling place time and Greenwich mean time;
acquiring time zone and daylight saving time information contained in the message to be processed;
calculating a time field value contained in the message to be processed according to the acquired time zone and daylight saving time information and the time field configuration;
and calculating the time countdown of the message to be processed according to the current time and the time field value contained in the message to be processed.
2. The method according to claim 1, wherein the obtaining the time field configuration in the to-be-processed message comprises:
acquiring information to be processed in the message to be processed, wherein the information to be processed at least comprises a navigation driver name, an NDC interface name and a message object;
inquiring a preset database according to the navigation driver name and the NDC interface name to acquire basic data and time configuration data corresponding to the navigation driver name and the NDC interface name; the preset database stores the corresponding relation between the name of the navigation driver and the name of the NDC interface and the basic data and the time configuration data;
and acquiring time field configuration contained in the message object according to the acquired basic data and the acquired time configuration data.
3. The method according to claim 2, wherein the acquiring time zone and daylight saving time information included in the to-be-processed message comprises:
and acquiring the position information included in the message to be processed, and acquiring time zone and daylight saving time information corresponding to the position information according to the position information.
4. The method of claim 3, wherein the calculating a time field value included in the to-be-processed message according to the acquired time zone and daylight saving time information and the time field configuration comprises:
and calculating the time field value of the message object in the message to be processed according to the time zone and daylight saving time information corresponding to the position information, the acquired basic data and time configuration data and the time field configuration.
5. The NDC standard-oriented time countdown acquisition method according to claim 1, wherein the calculating the time countdown of the to-be-processed packet according to the current time and a time field value included in the to-be-processed packet includes:
and calculating the difference value between the time field value contained in the message to be processed and the current time, and determining the calculated difference value as the time countdown of the message to be processed.
6. An acquisition system for time countdown for NDC standard, comprising:
the message acquisition module is used for acquiring a message to be processed;
the field configuration module is used for acquiring time field configuration in the message to be processed; the time field is configured to indicate the type of the time information in the message to be processed; the time information category comprises at least one of departure place time, destination time, selling place time and Greenwich mean time;
a time zone obtaining module, configured to obtain time zone and daylight saving time information included in the message to be processed;
the first calculation module is used for calculating a time field value contained in the message to be processed according to the acquired time zone and daylight saving time information and the time field configuration;
and the second calculation module is used for calculating the time countdown of the message to be processed according to the current time and the time field value contained in the message to be processed.
7. The NDC-standard-oriented time countdown acquisition system of claim 6, wherein the field configuration module is specifically configured to acquire information to be processed in the message to be processed, where the information to be processed at least includes a driver name, an NDC interface name, and a message object;
inquiring a preset database according to the navigation driver name and the NDC interface name to acquire basic data and time configuration data corresponding to the navigation driver name and the NDC interface name; the preset database stores the corresponding relation between the name of the navigation driver and the name of the NDC interface and the basic data and the time configuration data;
and acquiring time field configuration contained in the message object according to the acquired basic data and the acquired time configuration data.
8. The NDC-standard-oriented time countdown acquisition system of claim 7, wherein the time zone acquisition module is specifically configured to acquire location information included in the to-be-processed packet, and acquire time zone and daylight saving time information corresponding to the location information according to the location information.
9. The NDC-standard-oriented time countdown acquiring system of claim 8, wherein the first calculating module is specifically configured to calculate a time field value of a message object in the to-be-processed message according to time zone and daylight saving time information corresponding to the location information, the acquired basic data and time configuration data, and the time field configuration.
10. The NDC-standard-oriented time countdown acquisition system of claim 6, wherein the second calculation module is specifically configured to calculate a difference between a time field value included in the to-be-processed message and the current time, and determine the calculated difference as the time countdown of the to-be-processed message.
11. An acquisition system for time countdown for NDC standard, comprising: a memory and a processor;
the memory is configured to store program code, and the processor is configured to invoke the program code, and the program code is configured to execute the NDC standard oriented time countdown acquiring method according to any one of claims 1 to 5.
12. A storage medium having stored thereon program code which, when executed, implements the NDC standard oriented time countdown acquisition method of any of claims 1-5.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011083280.9A CN112202804B (en) | 2020-10-12 | 2020-10-12 | NDC standard-oriented time countdown acquisition method and related device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011083280.9A CN112202804B (en) | 2020-10-12 | 2020-10-12 | NDC standard-oriented time countdown acquisition method and related device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN112202804A true CN112202804A (en) | 2021-01-08 |
CN112202804B CN112202804B (en) | 2022-11-18 |
Family
ID=74014309
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202011083280.9A Active CN112202804B (en) | 2020-10-12 | 2020-10-12 | NDC standard-oriented time countdown acquisition method and related device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112202804B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115103205A (en) * | 2022-06-02 | 2022-09-23 | 咪咕视讯科技有限公司 | Personalized gasket generation method, device, equipment and computer readable storage medium |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101615350A (en) * | 2009-07-17 | 2009-12-30 | 中国民航大学 | A kind of Flight Information time zone time difference and summer time converter and disposal route thereof |
US20130103434A1 (en) * | 2011-10-24 | 2013-04-25 | Amadeus | Global Maximization of Time Limit Revenues by a Travel Provider |
US20160378874A1 (en) * | 2015-06-24 | 2016-12-29 | Avaea, Inc. | Travel distribution system |
JP2019211242A (en) * | 2018-05-31 | 2019-12-12 | セイコーエプソン株式会社 | Wearable device and time correction method |
CN111601134A (en) * | 2020-03-27 | 2020-08-28 | Vidaa美国 | Time display method in display equipment and display equipment |
-
2020
- 2020-10-12 CN CN202011083280.9A patent/CN112202804B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101615350A (en) * | 2009-07-17 | 2009-12-30 | 中国民航大学 | A kind of Flight Information time zone time difference and summer time converter and disposal route thereof |
US20130103434A1 (en) * | 2011-10-24 | 2013-04-25 | Amadeus | Global Maximization of Time Limit Revenues by a Travel Provider |
US20160378874A1 (en) * | 2015-06-24 | 2016-12-29 | Avaea, Inc. | Travel distribution system |
JP2019211242A (en) * | 2018-05-31 | 2019-12-12 | セイコーエプソン株式会社 | Wearable device and time correction method |
CN111601134A (en) * | 2020-03-27 | 2020-08-28 | Vidaa美国 | Time display method in display equipment and display equipment |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115103205A (en) * | 2022-06-02 | 2022-09-23 | 咪咕视讯科技有限公司 | Personalized gasket generation method, device, equipment and computer readable storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN112202804B (en) | 2022-11-18 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108960691B (en) | Method and device for determining article stock for server system | |
US8903924B2 (en) | Aggregating data in electronic communications | |
US20160085810A1 (en) | Scaling event processing using distributed flows and map-reduce operations | |
CN110866709A (en) | Order combination method and device | |
CN111737270A (en) | Data processing method and system, computer system and computer readable medium | |
CN110880084A (en) | Warehouse replenishment method and device | |
US20200380425A1 (en) | System and method of generating aggregated functional data | |
CN112884405A (en) | Inquiry system and scheduling method thereof | |
US20160232626A1 (en) | Travel activity tracking system | |
CN112231542A (en) | Method and device for selling additional services of standardized airline company | |
CN112202804B (en) | NDC standard-oriented time countdown acquisition method and related device | |
CN113297178A (en) | Aviation product data processing method and related equipment | |
CN110737655B (en) | Method and device for reporting data | |
US20210191918A1 (en) | System and method for optimizing transmission of requests for updated content from external data sources | |
CN113538028A (en) | Advertisement putting method and device | |
EP3016041A1 (en) | Schedule data standardization | |
US20130166501A1 (en) | Method and system for data filing systems | |
CN112598337A (en) | Article-oriented vehicle control method, apparatus, device and computer readable medium | |
US8869122B2 (en) | Extensible executable modeling | |
CN112671877B (en) | Data processing method and device | |
CN115617480A (en) | Task scheduling method, device and system and storage medium | |
CN115098558A (en) | Flight data statistical method and device | |
US9268514B2 (en) | Formatting data | |
CN113762835A (en) | Method and device for processing order data | |
CN110597802B (en) | Message processing method and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |