CN112202804B - NDC standard-oriented time countdown acquisition method and related device - Google Patents

NDC standard-oriented time countdown acquisition method and related device Download PDF

Info

Publication number
CN112202804B
CN112202804B CN202011083280.9A CN202011083280A CN112202804B CN 112202804 B CN112202804 B CN 112202804B CN 202011083280 A CN202011083280 A CN 202011083280A CN 112202804 B CN112202804 B CN 112202804B
Authority
CN
China
Prior art keywords
time
message
processed
information
ndc
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.)
Active
Application number
CN202011083280.9A
Other languages
Chinese (zh)
Other versions
CN112202804A (en
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.)
China Travelsky Technology Co Ltd
Original Assignee
China Travelsky 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 China Travelsky Technology Co Ltd filed Critical China Travelsky Technology Co Ltd
Priority to CN202011083280.9A priority Critical patent/CN112202804B/en
Publication of CN112202804A publication Critical patent/CN112202804A/en
Application granted granted Critical
Publication of CN112202804B publication Critical patent/CN112202804B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/22Parsing or analysis of headers
    • 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/24Querying
    • G06F16/245Query processing
    • 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/29Geographical information databases
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION 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/00Administration; Management
    • G06Q10/10Office automation; Time management
    • G06Q10/109Time management, e.g. calendars, reminders, meetings or time accounting
    • G06Q10/1093Calendar-based scheduling for persons or groups
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION 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/00Information and communication technology [ICT] specially adapted for implementation of business processes of specific business sectors, e.g. utilities or tourism
    • G06Q50/40Business 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 method for acquiring the time countdown facing the NDC standard 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.

Description

NDC standard-oriented time countdown acquisition method and related device
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 applied to messages of different navigation systems may be different, which may cause difficulty in understanding messages between the navigation systems to increase, and in addition, the time in the message is a parameter having a great significance 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 NDC standard-oriented time countdown acquisition system, comprising:
the message acquisition module is used for acquiring a message to be processed;
a field configuration module, configured to obtain 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 NDC standard-oriented time countdown acquisition system, 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 method for acquiring a time countdown oriented to the NDC standard, first, a time field configuration in a message to be processed and time zone and daylight saving time information included in the message to be processed are acquired, then, according to the acquired time zone and daylight saving time information and the time field configuration, a time field value included in the message to be processed is calculated, and finally, the time countdown of the message to be processed is calculated according to a current time and the time field value included in the message to be processed.
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 the A1 airline subscriber provided in the first embodiment of the present application;
fig. 4 is an airshoping return message segment of the A2 navigation driver provided in 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 the A1 airline driver finally obtained in the first embodiment;
fig. 7 is a standard message corresponding to a message to be processed of the 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 of the same version is calculated, the time can be different according to different understandings of the navigation department, the time of a sale place can be used in some meetings, the time of a departure place can be used in some meetings, the greenwich time can be used in some meetings 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 calculates 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 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.
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" or "an" in this disclosure are intended to be illustrative rather than limiting, and that those skilled in the art will appreciate that references to "one or more" are intended to be exemplary and not limiting unless the context clearly indicates 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 calculates 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 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.
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; the preset database stores the corresponding relation between the navigation driver name and the NDC interface name as well as 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, according to the obtained time zone and daylight saving time information and the time field configuration, a time field value included in the to-be-processed message 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 AirShoping is an interface to be called in the NDC service, and mainly has the function of inquiring available Offer according to OD (O is a starting point, origin. D is an arrival point, destination. An OD represents a route, and a user wants to inquire). 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 respectively 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 AirShopping 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 the A1 airline, which represents that greenwich time is used, but there is no Z at the end although the Offer expiration time of the A1 airline is also greenwich time, and here, the meaning of the time is just told to the reader 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 AirShopping 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 also gives a payment time limit besides the Offer expiration time, which also indicates that there are many critical time information in NDC.
(2) And then obtaining the time field configuration of the message to be processed.
Figure BDA0002719459180000081
Figure BDA0002719459180000091
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 airline operator in the message, and its time type. The time type values include Z, O, D and S, Z representing greenwich time, O representing departure time, D representing arrival time, and S representing 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 department uses greenwich time, which is standard time, and therefore no additional information needs to be acquired.
It is emphasized that the A2 navigation is taken as an example, and it can be seen from the configuration information obtained in step 2 that 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, which is actually obtained from the request (airshoppengrq) corresponding to the return in this example, 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 the A1 airline department, since the A1 airline department also uses greenwich mean time, no calculation is performed in time, and the time of the A1 airline department is "2020-06-12t 07.
What is now needed is to calculate the countdown difference from the current time. Assuming that the system uses Beijing time, the recorded time at the time is '2020-06-12'.
For the A2 airline department, the Offer validity period uses the time of the sale of hong kong, which is "2020-06-12t 15", and is converted into greenwich mean time of "2020-06-12t 07.
(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 airline department is shown in fig. 6.
The standard message corresponding to the A2 airline 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 departure time and the arrival time are basically consistent, and the departure time and the arrival time are respectively used, so that only one navigation is used for introduction 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-15T11:40 "00", the arrival time is "2020-07-15t15", the local time is used.
(2) And acquiring the time field configuration of the message to be processed.
Figure BDA0002719459180000111
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 time and the end time of daylight saving time mean the local time.
(4) And calculating the time field value contained in the message to be processed and the time countdown according to a preset NDC standard.
In this embodiment, the departure and arrival times, the predetermined NDC criteria, are also the departure and arrival times used, so the time value does not need to be calculated, and the count-down value needs to be calculated.
The current time is "2020-06-16" 16, which is the time of the system and the time used is Beijing time. 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-15T09: 40.
Further, count-down differences between the takeoff and arrival times and the current time are calculated as "P29DT4H23M3S" and "P29DT6H48M3S", 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;
a first calculating module 40, configured to calculate 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;
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), system 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 navigation driver name and the NDC interface name as well as 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 be separate and not incorporated 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;
a field configuration module, configured to obtain time field configuration in the message to be processed; the time field is configured to indicate the type of 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 to-be-processed message;
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 NDC standard-oriented time countdown acquisition system of example 1, where the second calculation 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 (10)

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 time information in the message to be processed; the time information type 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;
according to the obtained time zone and daylight saving time information and the time field configuration, calculating a time field value contained in the message to be processed;
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;
wherein, according to the current time and the time field value contained in the message to be processed, calculating the time countdown of the message to be processed comprises:
converting the current time into a time information type which is the same as a time field value contained in the message to be processed;
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.
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. 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 type 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 to-be-processed message;
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;
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;
the second calculation module is specifically configured to convert the current time into a time information category that is the same as a time field value included in the to-be-processed message;
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. The NDC standard-oriented time countdown acquisition system according to claim 5, 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 navigation driver name and the NDC interface name as well as 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.
7. The NDC-standard-oriented time countdown acquisition system of claim 6, 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.
8. The NDC-standard-oriented time countdown acquiring system of claim 7, 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.
9. 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 4.
10. 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-4.
CN202011083280.9A 2020-10-12 2020-10-12 NDC standard-oriented time countdown acquisition method and related device Active CN112202804B (en)

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 CN112202804A (en) 2021-01-08
CN112202804B true 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)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
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

Family Cites Families (5)

* Cited by examiner, † Cited by third party
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
EP2587443A1 (en) * 2011-10-24 2013-05-01 Amadeus Global maximization of time limit revenues by a travel provider
WO2016210344A1 (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
CN111601134B (en) * 2020-03-27 2022-06-24 Vidaa美国公司 Time display method in display equipment and display equipment

Also Published As

Publication number Publication date
CN112202804A (en) 2021-01-08

Similar Documents

Publication Publication Date Title
CN110866709B (en) Method and device for merging orders
US20160085810A1 (en) Scaling event processing using distributed flows and map-reduce operations
US20130151631A1 (en) Aggregating data in electronic communications
CN112231542B (en) Method and device for selling standardized additional services of airlines
CN112202804B (en) NDC standard-oriented time countdown acquisition method and related device
CN112308515B (en) NDC (non-uniform data storage) processing system oriented to NDC (non-uniform data storage) aggregator and service request processing method thereof
WO2019076001A1 (en) Information updating method and device
CN112884405A (en) Inquiry system and scheduling method thereof
EP3485447A1 (en) System, device, and method for capturing and managing point of sale transaction related data
CN113760922A (en) Service data processing system, method, server and storage medium
CN113177822A (en) Cross-border e-commerce multi-channel order management method, system and equipment
EP3016041A1 (en) Schedule data standardization
US20130166501A1 (en) Method and system for data filing systems
CN113297178A (en) Aviation product data processing method and related equipment
CN112598337A (en) Article-oriented vehicle control method, apparatus, device and computer readable medium
CN115098558A (en) Flight data statistical method and device
US8869122B2 (en) Extensible executable modeling
CN108965095B (en) Mail analysis method, mail analysis system, electronic device and readable storage medium
CN111309722A (en) Data processing method and device
CN114297183A (en) Data processing method and device for additional service
AU2017204753A1 (en) Automated engineering order creation
CN111127077A (en) Recommendation method and device based on stream computing
CN107886350B (en) Method and device for analyzing data
CN110956430A (en) Department door recommendation method and device
CN112465605A (en) Part generation method, device, equipment and storage medium

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