Flight-based flight time determination method and device and storage medium

By obtaining the daylight saving time information of the flight departure and arrival destination, the flight time of the flight is calculated, and the flight time calculation complexity problem under the influence of time zone differences and daylight saving time is solved, and accurate flight time determination is achieved.

CN119887140APending Publication Date: 2025-04-25TRAVELSKY TECHNOLOGY LIMITED
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202411941593.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-26
Publication Date
2025-04-25

AI Technical Summary

Technical Problem

Due to time zone differences and daylight saving time system, prior art cannot accurately determine flight time.

Method used

By determining the geographical location of the flight's departure and arrival location, obtain the target daylight saving time, including daylight saving time and daylight saving time, and based on this information, calculate the accurate flight time according to the flight's flight route.

Benefits of technology

It realizes accurate determination of flight flight time, solving the problem of flight time calculation complexity under time zone differences and daylight saving time influence.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119887140A_ABST
    Figure CN119887140A_ABST
Patent Text Reader

Abstract

The invention discloses a flight time determination method and device based on flights and a storage medium. The method comprises the following steps: determining a first geographic position of a takeoff airport of a target flight, a second geographic position of an arrival airport, takeoff time and arrival time; target daylight saving time of the target flight is determined based on the first geographic position and the second geographic position, the target daylight saving time comprises takeoff daylight saving time and arrival daylight saving time, the takeoff daylight saving time is used for representing daylight saving time in the first geographic position, and the arrival daylight saving time is used for representing daylight saving time in the second geographic position; and determining the flight time of the target flight according to the flight route of the target flight based on the takeoff time, the arrival time, and the takeoff daylight saving time and the arrival daylight saving time in the target daylight saving time. The technical problem that the flight time of the flight cannot be accurately determined is solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of data processing, and in particular to a method, device and storage medium for determining flight time based on a flight. Background Art

[0002] During the flight, the calculation of flight time is one of the key factors to ensure flight safety and efficiency. In order to save energy, many regions have implemented the daylight saving time system. Due to the time zone differences in different regions and the impact of the daylight saving time system on time, there is a technical problem that the flight time cannot be accurately determined.

[0003] With respect to the above-mentioned technical problem of being unable to accurately determine flight times, no effective solution has been proposed so far. Summary of the invention

[0004] The embodiments of the present invention provide a method, device and storage medium for determining flight time based on a flight, so as to at least solve the technical problem that the flight time of a flight cannot be accurately determined.

[0005] According to one aspect of an embodiment of the invention, a flight time determination method based on a flight is provided. The method comprises: determining a first geographical location of a departure airport, a second geographical location of an arrival airport, a departure time, and an arrival time of a target flight; determining a target daylight saving time of the target flight based on the first geographical location and the second geographical location, wherein the target daylight saving time comprises a departure daylight saving time and an arrival daylight saving time, the departure daylight saving time is used to characterize the daylight saving time in the first geographical location, and the arrival daylight saving time is used to characterize the daylight saving time in the second geographical location; determining the flight time of the target flight according to the flight route of the target flight based on the departure time, the arrival time, and the departure daylight saving time and the arrival daylight saving time in the target daylight saving time.

[0006] Optionally, based on the first geographic location and the second geographic location, determining the target daylight saving time of the target flight includes: based on the stored information of the target flight, obtaining identification information of the target daylight saving time, wherein the identification information is used to identify an acquisition strategy for the target daylight saving time, and the acquisition strategy is used to characterize rules for acquiring the target daylight saving time; based on the identification information, the first geographic location and the second geographic location, determining the target daylight saving time.

[0007] Optionally, based on the identification information, the first geographic location and the second geographic location, the target daylight saving time is determined, including: in response to the identification information being the first target value, obtaining a first city information file of the first geographic location and a second city information file of the second geographic location; parsing the first city information file to obtain a first processing result, and parsing the second city information file to obtain a second processing result; and determining the target daylight saving time based on the first processing result and the second processing result.

[0008] Optionally, determining the target daylight saving time based on the identification information, the first geographic location and the second geographic location includes: in response to the identification information being a second target value, determining the target daylight saving time based on a first preset daylight saving time for the first geographic location, and a second preset daylight saving time for the second geographic location, wherein the second target value is less than the first target value.

[0009] Optionally, the takeoff summer time includes a first takeoff summer time and a second takeoff summer time, and the arrival summer time includes a first arrival summer time and a second arrival summer time, wherein the first takeoff summer time is less than the second takeoff summer time, and the first arrival summer time is less than the second arrival summer time, and the flight time of the target flight is determined based on the takeoff time, the arrival time, and the takeoff summer time and the arrival summer time in the target summer time according to the flight route of the target flight, including: obtaining the takeoff time zone and the arrival time zone of the target flight; in response to the takeoff time being greater than the first takeoff summer time and less than the second takeoff summer time, obtaining the takeoff summer time parameters of the target flight, and in response to the arrival time being greater than the first arrival summer time and less than the second arrival summer time, obtaining the arrival summer time parameters of the target flight; determining the flight time based on the takeoff time zone, the arrival time zone, the takeoff summer time parameters, the arrival summer time parameters, the takeoff time and the arrival time.

[0010] Optionally, the flight time is determined based on the take-off time zone, the arrival time zone, the take-off daylight saving time parameter, the arrival daylight saving time parameter, the take-off time and the arrival time, including: determining the equivalent zero time zone time of the take-off place of the target flight based on the take-off time, the take-off time zone and the take-off daylight saving time parameter; determining the equivalent zero time zone time of the arrival place of the target flight based on the arrival time, the arrival time zone and the arrival daylight saving time parameter; determining the flight time based on the equivalent zero time zone time of the take-off place and the equivalent zero time zone time of the arrival place.

[0011] Optionally, the flight time is determined based on the equivalent zero time zone time of the departure location and the equivalent zero time zone time of the arrival location, including: performing a difference operation on the equivalent zero time zone time of the arrival location and the equivalent zero time zone time of the departure location to obtain a target difference; and determining the target difference as the flight time.

[0012] According to one aspect of an embodiment of the present invention, a flight time determination device based on flights is provided, and the device also includes: a first determination unit, used to determine a first geographical location of a departure airport, a second geographical location of an arrival airport, a departure time, and an arrival time of a target flight; a second determination unit, used to determine a target daylight saving time of the target flight based on the first geographical location and the second geographical location, wherein the target daylight saving time includes a departure daylight saving time and an arrival daylight saving time, the departure daylight saving time is used to characterize the daylight saving time in the first geographical location, and the arrival daylight saving time is used to characterize the daylight saving time in the second geographical location; a third determination unit, used to determine the flight time of the target flight according to the flight route of the target flight based on the departure time, the arrival time, and the departure daylight saving time and the arrival daylight saving time in the target daylight saving time.

[0013] According to another aspect of an embodiment of the present invention, a computer-readable storage medium is provided. The computer-readable storage medium includes a stored program, wherein when the program is executed by a processor, the device where the storage medium is located is controlled to execute the method in the embodiment of the present invention.

[0014] According to another aspect of an embodiment of the present invention, a processor is provided. The processor is used to run a program, wherein the method in the embodiment of the present invention is executed when the program is run.

[0015] According to another aspect of the embodiments of the present invention, a computer program product is provided, including a computer program. When the computer program is executed by a processor, the method in the embodiments of the present invention is implemented.

[0016] According to another aspect of an embodiment of the present invention, an electronic device is provided, the electronic device comprising a processor and a memory for storing instructions executable by the processor, wherein the processor is configured to execute the instructions to implement the method in the embodiment of the present invention.

[0017] In an embodiment of the present invention, a first geographical location of a departure airport, a second geographical location of an arrival airport, a departure time, and an arrival time of a target flight are determined; based on the first geographical location and the second geographical location, a target daylight saving time of the target flight is determined, wherein the target daylight saving time includes a departure daylight saving time and an arrival daylight saving time, the departure daylight saving time is used to characterize the daylight saving time in the first geographical location, and the arrival daylight saving time is used to characterize the daylight saving time in the second geographical location; based on the departure time, the arrival time, and the departure daylight saving time and the arrival daylight saving time in the target daylight saving time, the flight time of the target flight is determined according to the flight route of the target flight. That is to say, the embodiment of the present invention can determine the first geographical location of the departure airport, the second geographical location of the arrival airport, the departure time and the arrival time of the target flight, and then according to the first geographical location and the second geographical location obtained above, the purpose of determining the target daylight saving time of the target flight can be achieved. According to the departure time, the arrival time, and the departure daylight saving time and the arrival daylight saving time in the target daylight saving time, the flight time of the target flight can be determined according to the flight route of the target flight. Considering that after obtaining the first geographical location of the departure airport, the second geographical location of the arrival airport, the departure time and the arrival time of the target flight, the target daylight saving time of the target flight can be determined according to the first geographical location and the second geographical location, and then according to the departure time, the arrival time, the departure daylight saving time and the arrival daylight saving time in the target daylight saving time, the flight route of the target flight can be used to achieve the purpose of determining the flight time of the target flight, thereby solving the technical problem of being unable to accurately determine the flight time of the flight, and achieving the technical effect of being able to accurately determine the flight time of the flight. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] The drawings described herein are used to provide a further understanding of the present invention and constitute a part of the present invention. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the drawings:

[0019] Figure 1 is a flow chart of a method for determining flight time based on a flight according to an embodiment of the present invention;

[0020] Figure 2 is a flow chart of a method for obtaining a DSTIME data table according to an embodiment of the present invention;

[0021] Figure 3 is a flow chart of a time zone calculation method according to an embodiment of the present invention;

[0022] Figure 4 4 is a schematic diagram of a flight time determination device based on flights according to an embodiment of the present invention. DETAILED DESCRIPTION

[0023] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.

[0024] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0025] According to an embodiment of the present invention, a method for determining flight time based on flights is provided. It should be noted that in the flowchart of the accompanying drawings, the steps shown therein can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described may be executed in an order different from that shown here.

[0026] The following is an introduction to a flight time determination method based on a flight according to an embodiment of the present invention.

[0027] Figure 1 is a flow chart of a method for determining flight time based on a flight according to an embodiment of the present invention. Figure 1 As shown, the flight time determination method based on flights may include the following steps:

[0028] Step S101, determining a first geographical location of a departure airport, a second geographical location of an arrival airport, a departure time, and an arrival time of a target flight.

[0029] In the technical solution provided in step S101 of the present invention, the user can query the flight schedule to obtain the first geographical location of the departure airport, the second geographical location of the arrival airport, the departure time and the arrival time of the target flight. The first geographical location of the departure airport is used to represent the geographical location of the departure place. The second geographical location of the arrival airport is used to represent the geographical location of the arrival place.

[0030] Optionally, the target flight is the flight that the user is taking, which can be represented by A123. The departure airport can be represented by C. The arrival airport can be represented by G. The departure time can be represented by a number, for example, the departure time 16:55 on June 14, 2024 can be represented as 202406141655. The representation method of the arrival time is the same as that of the departure time, which is not listed here.

[0031] For example, the user queries the flight schedule according to the flight A123 that he / she is taking, so as to obtain the geographical location of the departure airport C and the arrival airport G of the flight, as well as the departure time of 16:55 on June 14, 2024 and the arrival time of 19:50 on June 14, 2024.

[0032] It should be noted that this is only a preferred implementation method for determining the first geographical location of the departure airport, the second geographical location of the arrival airport, the take-off time and the arrival time of the target flight, and does not specifically limit the process and method for determining the first geographical location of the departure airport, the second geographical location of the arrival airport, the take-off time and the arrival time of the target flight.

[0033] Step S102: determining a target daylight saving time of a target flight based on the first geographical location and the second geographical location.

[0034] In the technical solution provided in the above step S102 of the present invention, after obtaining the first geographical location and the second geographical location, the target daylight saving time of the target flight can be determined, wherein the target daylight saving time includes the take-off daylight saving time and the arrival daylight saving time, the take-off daylight saving time is used to represent the daylight saving time in the first geographical location, and the arrival daylight saving time is used to represent the daylight saving time in the second geographical location.

[0035] Optionally, the target daylight saving time may be referred to as daylight saving time, which is a daylight saving system that sets clocks one hour ahead during the summer to make full use of natural light. Daylight saving time can save energy, reduce people's electricity consumption at night, and achieve the effect of improving people's quality of life and production efficiency.

[0036] Optionally, the target daylight saving time may be represented by a numerical value, for example, when the target daylight saving time is 01:00 on March 6, 2024, it may be represented as 202403060100. It should be noted that only an example is given here to illustrate the representation of the target daylight saving time, and the representation of the target daylight saving time is not specifically limited.

[0037] For example, according to the geographical location of the departure airport C and the geographical location of the arrival airport G of flight A123, it can be determined that the target daylight saving time of flight A123 is 01:00 on March 6, 2024.

[0038] It should be noted that this is only a preferred implementation method for determining the target daylight saving time of the target flight, and does not specifically limit the process and method for determining the target daylight saving time of the target flight. As long as it is based on the first geographical location and the second geographical location, the method and process for determining the target daylight saving time of the target flight are within the scope of protection of the present invention and will not be repeated here.

[0039] Step S103, determining the flight time of the target flight according to the flight route of the target flight based on the take-off time, the arrival time, and the take-off daylight saving time and the arrival daylight saving time in the target daylight saving time.

[0040] In the technical solution provided in the above step S103 of the present invention, the flight time of the target flight can be determined according to the take-off time, the arrival time, and the take-off daylight saving time and the arrival daylight saving time in the target daylight saving time, according to the flight route of the target flight.

[0041] Optionally, the flight route is used to characterize the path and range of the aircraft flight, including the flight route between the take-off point, the intermediate waypoints and the destination point. According to the flight route, it can be ensured that the aircraft arrives at the destination safely according to the predetermined path.

[0042] Optionally, the flight time can be represented by numbers. For example, when the flight time of a flight is 1 hour and 55 minutes, it can be represented as 0155 or the time 1:55. It should be noted that this is only an example of the representation of the flight time, and does not specifically limit the representation of the flight time.

[0043] For example, according to the departure time of flight A123 of 16:55 on June 14, 2024, the arrival time of 19:50 on June 14, 2024, and the target daylight saving time of 01:00 on March 6, 2024, according to the preset flight route, it can be determined that the flight time of the flight is 1 hour and 55 minutes.

[0044] It should be noted that this is only a preferred implementation method for determining the flight time of the target flight, and the process and method for determining the flight time of the target flight are not specifically limited. As long as it is based on the take-off time, arrival time, and the take-off daylight saving time and arrival daylight saving time in the target daylight saving time, according to the flight route of the target flight, the process and method for determining the flight time of the target flight are within the protection scope of the present invention and are not listed here.

[0045] In the above steps S101 to S103 of the present invention, a first geographical location of the departure airport, a second geographical location of the arrival airport, a departure time and an arrival time of the target flight are determined; based on the first geographical location and the second geographical location, a target daylight saving time of the target flight is determined, wherein the target daylight saving time includes a departure daylight saving time and an arrival daylight saving time, the departure daylight saving time is used to characterize the daylight saving time in the first geographical location, and the arrival daylight saving time is used to characterize the daylight saving time in the second geographical location; based on the departure time, the arrival time, and the departure daylight saving time and the arrival daylight saving time in the target daylight saving time, the flight time of the target flight is determined according to the flight route of the target flight. That is to say, the embodiment of the present invention can determine the first geographical location of the departure airport, the second geographical location of the arrival airport, the departure time and the arrival time of the target flight, and then according to the first geographical location and the second geographical location obtained above, the purpose of determining the target daylight saving time of the target flight can be achieved. According to the departure time, the arrival time, and the departure daylight saving time and the arrival daylight saving time in the target daylight saving time, the flight time of the target flight can be determined according to the flight route of the target flight. Considering that after obtaining the first geographical location of the departure airport, the second geographical location of the arrival airport, the departure time and the arrival time of the target flight, the target daylight saving time of the target flight can be determined according to the first geographical location and the second geographical location, and then according to the departure time, the arrival time, the departure daylight saving time and the arrival daylight saving time in the target daylight saving time, the flight route of the target flight can be used to achieve the purpose of determining the flight time of the target flight, thereby solving the technical problem of being unable to accurately determine the flight time of the flight, and achieving the technical effect of being able to accurately determine the flight time of the flight.

[0046] The above method of this embodiment is further introduced below.

[0047] As an optional implementation method, the target daylight saving time of a target flight is determined based on a first geographic location and a second geographic location, including: based on the stored information of the target flight, obtaining identification information of the target daylight saving time, wherein the identification information is used to identify an acquisition strategy for the target daylight saving time, and the acquisition strategy is used to characterize rules for acquiring the target daylight saving time; based on the identification information, the first geographic location and the second geographic location, the target daylight saving time is determined.

[0048] In this embodiment, the identification information of the target daylight saving time can be obtained according to the stored information of the target flight, and then the target daylight saving time of the target flight can be determined according to the identification information, the first geographical location and the second geographical location. The identification information can be represented by the TYPE field, and the TYPE field can be represented by a value, such as 0, 1, etc. It should be noted that only an example of the representation of the identification information is given here, and the representation of the identification information is not specifically limited.

[0049] As an optional implementation method, the target daylight saving time is determined based on identification information, a first geographic location, and a second geographic location, including: in response to the identification information being a first target value, obtaining a first city information file of the first geographic location, and a second city information file of the second geographic location; parsing the first city information file to obtain a first processing result, and parsing the second city information file to obtain a second processing result; and determining the target daylight saving time based on the first processing result and the second processing result.

[0050] In this embodiment, after obtaining the identification information, if the identification information at this time is the first target value, the first city information file of the first geographical location and the second city information file of the second geographical location can be obtained, and then the first city information file needs to be parsed to obtain the first processing result, and the second city information file needs to be parsed to obtain the second processing result. According to the first processing result and the second processing result obtained above, the target daylight saving time can be determined. The first target value can be a preset value, such as 1.

[0051] Optionally, the first city information file may be a city information file of the day of the departure place of the target flight. After parsing the first city information file, the city daylight saving time information of the departure place may be obtained, and the city daylight saving time information of the departure place may be stored in the target table, wherein the target table may be represented by a DSTIME data table, and the DSTIME data table may also be referred to as a valid table.

[0052] Optionally, the second city information file may be a city information file of the destination of the target flight on that day. After parsing the second city information file, the city daylight saving time information of the destination of the target flight can be obtained, and the city daylight saving time information of the destination is stored in the target table.

[0053] Optionally, the target table obtained by the above steps is called to obtain the purpose of determining the target daylight saving time. Table 1 is a DSTIME data table. As shown in Table 1, the data table may include: airport three-letter code (CBG), daylight saving time start time, day of the start week of daylight saving time, week of the start month of daylight saving time, day of the end week of daylight saving time, week of the end month of daylight saving time, daylight saving time end time, daylight saving time start date, daylight saving time end date, storage method and effectiveness switch.

[0054] Optionally, as shown in Table 1, when the airport three-letter code of the departure airport is CBG, it can be determined that the start time of daylight saving time is 0100, that is, 1 o'clock, the end time of daylight saving time is 0200, that is, 2 o'clock, the start date of daylight saving time is 20240331, that is, March 31, 2024, and the end date of daylight saving time is 20241027, that is, October 27, 2024. The storage method corresponds to "1", that is, the daylight saving time information is obtained through the first method, and the effective switch is 1, that is, the take-off time of the target flight at this time is within the local daylight saving time effective range. The method for judging whether the arrival time is within the local daylight saving time effective range is the same as the above-mentioned method for judging the take-off time, and will not be repeated here.

[0055] Optionally, the daylight saving time information is obtained by the first method, that is, when the storage method corresponds to "1", the city information file of the departure place of the target flight and the city information file of the arrival place of the target flight are obtained, and the city information file of the departure place and the city information file of the arrival place are parsed and processed respectively to obtain the city daylight saving time information of the departure place and the city daylight saving time information of the arrival place, and then the target daylight saving time of the target flight is determined based on the city daylight saving time information of the departure place and the city daylight saving time information of the arrival place.

[0056] Table 1 A DSTIME data table

[0057]

[0058] For example, the latest city information file of the day is updated on a fixed remote server every day, and the city information file of the day is obtained through the File Transfer Protocol (FTP) at a fixed time every night, and then the city information file obtained is parsed to obtain the city daylight saving time information. The flight schedule is queried to find the airport corresponding to the city, and then the airport daylight saving time information is stored in the DSTIME data table of the day.

[0059] For another example, when a user makes a flight query, if the above method is used, the program will obtain the daylight saving time information in the DSTIME effective table of the day based on the departure airport and arrival airport entered by the user, and then obtain the departure time and arrival time by querying the flight schedule. If the departure time is within the effective time range of the daylight saving time of the departure airport, the daylight saving time of the departure time will be effective. Similarly, if the arrival time is within the effective time range of the daylight saving time of the arrival airport, the daylight saving time of the arrival time will be effective, thereby achieving the purpose of obtaining the target daylight saving time of the target flight.

[0060] As an optional embodiment, the target daylight saving time is determined based on identification information, a first geographic location, and a second geographic location, including: in response to the identification information being a second target value, the target daylight saving time is determined based on a first preset daylight saving time for the first geographic location, and a second preset daylight saving time for the second geographic location, wherein the second target value is less than the first target value.

[0061] In this embodiment, after the identification information is obtained, if the identification information is a second target value, the target daylight saving time can be determined according to the first preset daylight saving time of the first geographical location and the second preset daylight saving time of the second geographical location, wherein the second target value can be a preset value, such as 0. The first preset daylight saving time is determined according to the daylight saving time policy of the country where the departure location belongs. The second preset daylight saving time is determined according to the daylight saving time policy of the country where the arrival location belongs.

[0062] Optionally, when the storage mode corresponds to "0", it means that the daylight saving time information can be obtained through the second method, that is, according to the first preset daylight saving time and the second preset daylight saving time, to achieve the purpose of determining the target daylight saving time. For example, by obtaining the daylight saving time policies of various countries, the accurate daylight saving time effective time range of the city where the airport is located is calculated according to the relative time of a certain year, month, week, and day. When the user makes a flight query, if the above method is used, the program will compare the queried airport and time with the daylight saving time information calculated above. If they are within the range, it proves that the daylight saving time is effective at the queried airport during the query time.

[0063] As an optional implementation method, the take-off summer time includes a first take-off summer time and a second take-off summer time, and the arrival summer time includes a first arrival summer time and a second arrival summer time, wherein the first take-off summer time is less than the second take-off summer time, and the first arrival summer time is less than the second arrival summer time. Based on the take-off time, the arrival time, and the take-off summer time and the arrival summer time in the target summer time, the flight time of the target flight is determined according to the flight route of the target flight, including: obtaining the take-off time zone and arrival time zone of the target flight; in response to the take-off time being greater than the first take-off summer time and less than the second take-off summer time, obtaining the take-off summer time parameter of the target flight, and in response to the arrival time being greater than the first arrival summer time and less than the second arrival summer time, obtaining the arrival summer time parameter of the target flight; determining the flight time based on the take-off time zone, the arrival time zone, the take-off summer time parameter, the arrival summer time parameter, the take-off time and the arrival time.

[0064] In this embodiment, the flight time of the target flight is determined according to the take-off time, the arrival time, and the take-off daylight saving time and the arrival daylight saving time in the target daylight saving time and the flight route of the target flight.

[0065] Optionally, the take-off summer time includes a first take-off summer time and a second take-off summer time, wherein the first take-off summer time is used to characterize the start time of the summer time of the first geographical location and can be represented by a numerical value, and the second take-off summer time can be used to characterize the end time of the summer time of the first geographical location and can be represented by a numerical value. The arrival summer time includes a first arrival summer time and a second arrival summer time, wherein the first arrival summer time is used to characterize the start time of the summer time of the second geographical location and can be represented by a numerical value, and the second arrival summer time is used to characterize the end time of the summer time of the second geographical location and can be represented by a numerical value.

[0066] Optionally, the departure time zone may be referred to as the departure time zone, which may be represented by dep_zone. The arrival time zone may be referred to as the arrival time zone, which may be represented by arr_zone. It should be noted that the time zone is positive for the east zone and negative for the west zone.

[0067] Optionally, the take-off time may be referred to as the take-off local time, which may be represented by dep_time. The arrival time may be referred to as the arrival local time, which may be represented by arr_time. The take-off daylight saving time parameter may be referred to as the take-off place daylight saving time parameter, which may be represented by dep_dstime. The arrival daylight saving time parameter may be referred to as the arrival place daylight saving time parameter, which may be represented by arr_dstime.

[0068] Optionally, when the departure time is between the daylight saving time start time of the first geographical location and the daylight saving time end time of the first geographical location, the departure daylight saving time parameter dep_dstime of the target flight can be obtained as 1, otherwise, the departure daylight saving time parameter is 0. When the arrival time is between the daylight saving time start time of the second geographical location and the daylight saving time end time of the second geographical location, the arrival daylight saving time parameter arr_dstime of the target flight can be obtained as 1, otherwise, the arrival daylight saving time parameter is 0.

[0069] As an optional implementation method, the flight time is determined based on the take-off time zone, the arrival time zone, the take-off daylight saving time parameter, the arrival daylight saving time parameter, the take-off time and the arrival time, including: determining the equivalent zero time zone time of the take-off place of the target flight based on the take-off time, the take-off time zone and the take-off daylight saving time parameter; determining the equivalent zero time zone time of the arrival place of the target flight based on the arrival time, the arrival time zone and the arrival daylight saving time parameter; determining the flight time based on the equivalent zero time zone time of the take-off place and the equivalent zero time zone time of the arrival place.

[0070] In this embodiment, the equivalent zero time zone time of the departure location of the target flight can be determined based on the take-off time, the take-off time zone and the take-off daylight saving time parameters; the equivalent zero time zone time of the arrival location of the target flight can be determined based on the arrival time, the arrival time zone and the arrival daylight saving time parameters, and then the flight time can be determined based on the equivalent zero time zone time of the departure location and the equivalent zero time zone time of the arrival location obtained above.

[0071] Optionally, the departure point equivalent zero time zone time is used to represent the time when the aircraft departs from the departure point based on the zero time zone, and can be represented by dep_stanTime. The arrival point equivalent zero time zone time is used to represent the time when the aircraft arrives at the arrival point based on the zero time zone, and can be represented by arr_stanTime.

[0072] Optionally, the takeoff time zone and the takeoff daylight saving time parameter are summed to obtain a first sum value; the takeoff time and the first sum value are subtracted to obtain a first difference value; and the first difference value is determined as the equivalent zero time zone time of the takeoff location. It should be noted that the equivalent zero time zone time of the takeoff location (dep_stanTime) can be expressed by the following formula:

[0073] dep_stanTime=dep_time-(dep_zone+dep_dstime),

[0074] Specifically, the arrival time zone and the arrival daylight saving time parameter are summed to obtain a second sum; the arrival time and the second sum are subtracted to obtain a second difference; and the second difference is determined as the arrival equivalent zero time zone time. It should be noted that the arrival equivalent zero time zone time (arr_stanTime) can be expressed by the following formula:

[0075] arr_stanTime=arr_time-(arr_zone+arr_dstime).

[0076] It can be understood that this is only a preferred implementation method for determining the flight time based on the equivalent zero time zone time of the departure place and the equivalent zero time zone time of the arrival place, and does not specifically limit the process and method for determining the flight time based on the equivalent zero time zone time of the departure place and the equivalent zero time zone time of the arrival place.

[0077] As an optional implementation method, the flight time is determined based on the equivalent zero time zone time of the departure point and the equivalent zero time zone time of the arrival point, including: performing a difference operation on the equivalent zero time zone time of the arrival point and the equivalent zero time zone time of the departure point to obtain a target difference; and determining the target difference as the flight time.

[0078] In this embodiment, after obtaining the equivalent zero time zone time of the departure location and the equivalent zero time zone time of the arrival location, the equivalent zero time zone time of the departure location can be subtracted from the equivalent zero time zone time of the arrival location to obtain a target difference, and then the flight time is determined by the target difference. The flight time can be represented by journeyTime. It should be noted that the flight time (journeyTime) can be represented by the following formula:

[0079] journeyTime=arr_stanTime-dep_stanTime.

[0080] For example, the departure time of flight A123 is 16:55 on June 14, 2024, at the departure local time of airport C, and the arrival time is 19:50 on June 14, 2024, at the arrival local time of airport G. In 2024, the effective time of daylight saving time in the area where airport C is located is from 1:00 on March 31 to 2:00 on October 27, local time. The effective time of daylight saving time in the area where airport G is located is from 2:00 on March 31 to 3:00 on October 27, local time. As can be seen from the above, the departure time and arrival time of the flight are both within the effective range of the local daylight saving time.

[0081] Table 2 Parameters of flight A123

[0082] dep_time 16:55 dep_zone 1 dep_dstime 1 arr_time 19:50 arr_zone 2 arr_dstime 1

[0083] Further, by summarizing the above information, we can get Table 2, which is the parameter table of flight A123. As shown in Table 2, we can get that the departure time zone dep_zone of the flight is 1, the departure daylight saving time parameter dep_dstime is 1, the arrival time zone arr_zone is 2, and the arrival daylight saving time parameter arr_dstime is 1. Then the flight time is calculated as follows:

[0084] JourneyTime=(19:50-2-1)-(16:55-1-1)

[0085] =16:50-14:55

[0086] =1:55

[0087] That is, the final output flight time for this flight is 1 hour and 55 minutes.

[0088] In this embodiment, the first geographical location of the departure airport, the second geographical location of the arrival airport, the departure time and the arrival time of the target flight can be determined, and then the target daylight saving time of the target flight can be determined based on the first geographical location and the second geographical location obtained above. According to the departure time, the arrival time, and the departure daylight saving time and the arrival daylight saving time in the target daylight saving time, the flight time of the target flight can be determined according to the flight route of the target flight. Considering that after obtaining the first geographical location of the departure airport, the second geographical location of the arrival airport, the departure time and the arrival time of the target flight, the target daylight saving time of the target flight can be determined according to the first geographical location and the second geographical location. Then, according to the departure time, the arrival time, the departure daylight saving time and the arrival daylight saving time in the target daylight saving time, the flight time of the target flight can be determined according to the flight route of the target flight, thereby solving the technical problem of being unable to accurately determine the flight time of the flight, and achieving the technical effect of being able to accurately determine the flight time of the flight.

[0089] The technical solution of the embodiment of the present invention is illustrated below in conjunction with preferred implementation modes.

[0090] In the field of civil aviation, the calculation of flight time is one of the key factors to ensure flight safety and efficiency. The flight time based on daylight saving time involves the time zone differences in different regions of the world and the specific impact of the daylight saving time system on the civil aviation industry.

[0091] At present, about 40% of the countries in the world implement daylight saving time. In the summer when the sun rises early, the time is set one hour ahead artificially, which allows people to get up and go to bed early, reduce the amount of lighting, and make full use of sunlight resources, thereby saving electricity for lighting and improving the quality of life. However, the implementation of daylight saving time increases the complexity of flight time calculation, because it requires taking into account the daylight saving time policies of the departure and destination places and the corresponding time differences. However, due to the uncertainty of daylight saving time in different regions, there is a technical problem that the flight time cannot be accurately determined.

[0092] Therefore, in order to solve the above problems, the present invention proposes a flight time determination method based on daylight saving time. The method can receive daylight saving time data from two different sources, and by processing the daylight saving time data from the two different sources, the purpose of determining the flight time of the flight is achieved, and the user's need for calculating the flight time when querying the flight is covered to the greatest extent, thereby solving the technical problem of being unable to accurately determine the flight time of the flight, and achieving the technical effect of being able to accurately determine the flight time of the flight.

[0093] Figure 2 is a flow chart of a method for obtaining a DSTIME data table according to an embodiment of the present invention, such as Figure 2 As shown, the method comprises the following steps:

[0094] Step S201, calling the target function to obtain the file through FTP.

[0095] Step S202, whether the file is obtained successfully.

[0096] In this embodiment, it is necessary to determine whether the file is acquired successfully. If the file is acquired successfully, step S203 is executed; if the file is not acquired successfully, step S213 is executed.

[0097] Step S203, remove all data containing Chinese characters in the file for subsequent analysis.

[0098] Step S204, calling the parsing file.

[0099] Step S205: Check whether the file parsing is successful.

[0100] In this embodiment, it is necessary to determine whether the file parsing is successful. If successful, step S206 is executed; if not, step S213 is executed.

[0101] Step S206, calling the function of data stream transmission time to generate a time control file.

[0102] In this embodiment, a function of data stream transmission time (dstime_ctl() function) may be called to generate a time control file (dstime.ctl file).

[0103] Step S207, storing the relevant data of the above calling process.

[0104] Step S208, importing data into the database.

[0105] Step S209: whether the data is imported successfully.

[0106] In this embodiment, it is necessary to determine whether the data is imported successfully. If successful, step S210 is executed; if unsuccessful, step S213 is executed.

[0107] Step S210, calling the valid table update function to update the valid table and implement the switching between the primary and standby tables.

[0108] In this embodiment, the update valid table function (updateValidTable() function) is called to update the valid table to implement the switching of the primary and standby tables.

[0109] Step S211, updating the cache.

[0110] Step S212, processing logs and other record files.

[0111] Step S213, the target function is called and the DSTIME data table is obtained.

[0112] In this embodiment, the first geographical location of the departure airport, the second geographical location of the arrival airport, the departure time and the arrival time of the target flight can be determined, and then the target daylight saving time of the target flight can be determined based on the first geographical location and the second geographical location obtained above. According to the departure time, the arrival time, and the departure daylight saving time and the arrival daylight saving time in the target daylight saving time, the flight time of the target flight can be determined according to the flight route of the target flight. Considering that after obtaining the first geographical location of the departure airport, the second geographical location of the arrival airport, the departure time and the arrival time of the target flight, the target daylight saving time of the target flight can be determined according to the first geographical location and the second geographical location. Then, according to the departure time, the arrival time, the departure daylight saving time and the arrival daylight saving time in the target daylight saving time, the flight time of the target flight can be determined according to the flight route of the target flight, thereby solving the technical problem of being unable to accurately determine the flight time of the flight, and achieving the technical effect of being able to accurately determine the flight time of the flight.

[0113] Figure 3 is a flow chart of a time zone calculation method according to an embodiment of the present invention. Figure 3 As shown, the method comprises the following steps:

[0114] Step S301, input date, airport and time zone parameters.

[0115] Step S302, calling a function for obtaining a time zone and a date.

[0116] In this embodiment, a function for obtaining a time zone and a date (getTimeZone_Date function) may be called.

[0117] Step S303, initializing date parameters.

[0118] Step S304, query the DSTIME table according to the airport schedule.

[0119] Step S305: whether to configure daylight saving time.

[0120] In this embodiment, it is determined whether daylight saving time is configured, if yes, step S306 is executed; if no, step S314 is executed.

[0121] Step S306, determining the value of the validation switch.

[0122] In this embodiment, it is necessary to determine the value of the effective switch. When the value of the effective switch is 1, step S307 is executed; when the value of the effective switch is 0, step S314 is executed.

[0123] Step S307, obtaining daylight saving time parameters.

[0124] Step S308, determine the value of the storage method.

[0125] In this embodiment, it is necessary to determine the value of the storage mode. When the value of the storage mode is 1, step S310 is executed; when the value of the storage mode is 0, step S309 is executed.

[0126] Step S309, indirectly calculating the range of daylight saving time through the month, week number, and day number.

[0127] In this embodiment, when the storage mode corresponds to "0", the range of daylight saving time can be indirectly calculated by month, week number, and day number, that is, according to the first preset daylight saving time and the second preset daylight saving time, the purpose of determining the target daylight saving time is achieved. For example, by obtaining the daylight saving time policy of each country, the accurate daylight saving time effective time range of the city where the airport is located is calculated according to the relative time of a certain year, month, week, and day. When the user makes a flight query, if the above method is used, the program will compare the queried airport and time with the daylight saving time information calculated above. If they are within the range, it proves that the queried airport is in effect for daylight saving time during the query time.

[0128] Step S310, directly obtain the accurate daylight saving time range.

[0129] In this embodiment, when the storage mode is "1" in Table 1, the accurate daylight saving time range can be directly obtained, that is, the city information file of the departure place of the target flight and the city information file of the arrival place of the target flight are obtained. After respectively parsing the city information file of the departure place and the city information file of the arrival place, the city daylight saving time information of the departure place and the city daylight saving time information of the arrival place are obtained, and then the target daylight saving time of the target flight is determined according to the city daylight saving time information of the departure place and the city daylight saving time information of the arrival place.

[0130] For example, the latest city information file of the day is updated on a fixed remote server every day, and the city information file of the day is obtained through the file transfer protocol at a fixed time every night, and then the city information file obtained above is parsed to obtain the city daylight saving time information. The flight schedule is queried to find the airport corresponding to the city, and then the airport daylight saving time information is stored in the DSTIME data table of the day.

[0131] For another example, when a user makes a flight query, if the above method is used, the program will obtain the daylight saving time information in the DSTIME effective table of the day based on the departure airport and arrival airport entered by the user, and then obtain the departure time and arrival time by querying the flight schedule. If the departure time is within the effective time range of the daylight saving time of the departure airport, the daylight saving time of the departure time will be effective. Similarly, if the arrival time is within the effective time range of the daylight saving time of the arrival airport, the daylight saving time of the arrival time will be effective, thereby achieving the purpose of obtaining the target daylight saving time of the target flight.

[0132] Step S311, whether the departure time and arrival time of the current flight are within the daylight saving time range.

[0133] In this embodiment, it is necessary to determine whether the departure time and arrival time of the current flight are within the daylight saving time range. If yes, execute step S312; if not, execute step S314.

[0134] Step S312, the time zone number is increased by 1.

[0135] Step S313, output airport time zone data.

[0136] Step S314: If daylight saving time is not implemented, the time zone number remains unchanged.

[0137] In this embodiment, in international flights, there are often different daylight saving time policies due to different time zones at the departure and arrival locations. In this case, the local time at the departure and arrival locations are not comparable, that is, the flight time cannot be directly calculated. The present invention can calculate the equivalent zero time zone time through the local time, time zone and daylight saving time, and use this as a reference to calculate the accurate flight time.

[0138] Optionally, set the daylight saving time parameter (dep_dstime) of the departure place. When the departure time is determined to be within the daylight saving time range, the parameter value is 1, otherwise it is 0. The same applies to the daylight saving time parameter (arr_dstime) of the arrival place. When the user queries a flight, he can query the flight schedule to obtain the local time of departure (dep_time) and the local time of arrival (arr_time), as well as the time zone of the departure place (dep_zone) and the time zone of the arrival place (arr_zone). It should be noted that the time zone is positive for the eastern zone and negative for the western zone. The equivalent zero time zone time (dep_stanTime) of the departure place can be expressed by the following formula:

[0139] dep_stanTime=dep_time-(dep_zone+dep_dstime).

[0140] Furthermore, the equivalent zero time zone time (arr_stanTime) of the arrival location can be expressed by the following formula:

[0141] arr_stanTime=arr_time-(arr_zone+arr_dstime).

[0142] The flight time (journeyTime) can be obtained by subtracting the above two values, which can be expressed by the following formula:

[0143] journeyTime=arr_stanTime-dep_stanTime.

[0144] For example, to obtain the flight information of the current flight A123, the departure time of the flight is 16:55 on June 14, 2024, local time at the airport (CBG), and the arrival time is 19:50 on June 14, 2024, local time at the airport (GOT).

[0145] Furthermore, after obtaining the city information file through FTP, the above city information file is parsed to obtain the three-letter city code "CBG", and then the city daylight saving time information of the departure place can be obtained. Then use the three-letter city code "CBG" to query the airport table (AIRPORTS table) to obtain the query result, that is, the time zone of the airport corresponding to "CBG" is East 1. The DSTIME data table of Airport C can be obtained from the above steps, which is Table 1. It can be seen from Table 1 that the daylight saving time starts at 1:00 on March 31, 2024, and the daylight saving time ends at 2:00 on October 27, 2024. The storage method is 1, that is, the daylight saving time information is obtained through the first method, and the effectiveness switch is 1, that is, the departure time of the current flight is within the local daylight saving time effectiveness range.

[0146] In addition, based on the above steps, it can be determined whether the arrival time of the current flight is within the local daylight saving time effective range, that is, first obtain the time zone of the GOT airport as the East 2nd District, and then according to Table 1, the daylight saving time start time of the GOT airport can be obtained as the daylight saving time effective time is 2:00 on March 31, 2024, and the daylight saving time end effective time is 3:00 on October 27, 2024. The storage method is 1, that is, the daylight saving time information is obtained through the first method, and the effectiveness switch is 1, that is, the arrival time of the current flight is within the local daylight saving time effective range.

[0147] From the above, it can be obtained that the departure time of flight A123 is the departure local time dep_time of Airport C, which is 16:55 on June 14, 2024, and the arrival time is the arrival local time arr_time of Airport G, which is 19:50 on June 14, 2024. In 2024, the daylight saving time in the area where Airport C is located is from 1:00 local time on March 31 to 2:00 local time on October 27. The daylight saving time in the area where Airport G is located is from 2:00 local time on March 31 to 3:00 local time on October 27. From the above, it can be seen that the departure time and arrival time of the flight are both within the local daylight saving time effective range. The above information is summarized to obtain Table 2, so that the purpose of obtaining the flight time can be obtained through storage method 1, which is the following formula:

[0148] JourneyTime=(19:50-2-1)-(16:55-1-1)

[0149] =16:50-14:55

[0150] =1:55

[0151] The final output is that the flight time of the flight is 1 hour and 55 minutes.

[0152] For another example, when the storage mode is 0, the daylight saving time information of the places where airports C and G are located is obtained according to local policies. Table 3 is another DSTIME data table. As shown in Table 3, the daylight saving time effective range of airport C is from 1:00 on the last Sunday of March to 2:00 on the Sunday of the last week of October each year; the daylight saving time effective range of airport G is from 2:00 on the Sunday of the last week of March to 3:00 on the last Sunday of October each year. Among them, the last week of a month can be represented by -1. According to the calendar data of 2024, the daylight saving time effective time of airport C is 1:00 on March 6 to 2:00 on October 29 local time; the daylight saving time effective time of airport G is from 2:00 on March 6 to 3:00 on October 29 local time. From the above, the parameter values ​​of the flight can be obtained, which are the same as the parameter data in Table 2, and the flight time can be obtained:

[0153] JourneyTime=(19:50-2-1)-(16:55-1-1)

[0154] =16:50-14:55

[0155] =1:55

[0156] The final output is that the flight time of this flight is 1 hour and 55 minutes.

[0157] Table 3 Another DSTIME data table

[0158]

[0159] In this embodiment, the first geographical location of the departure airport, the second geographical location of the arrival airport, the departure time and the arrival time of the target flight can be determined, and then the target daylight saving time of the target flight can be determined based on the first geographical location and the second geographical location obtained above. According to the departure time, the arrival time, and the departure daylight saving time and the arrival daylight saving time in the target daylight saving time, the flight time of the target flight can be determined according to the flight route of the target flight. Considering that after obtaining the first geographical location of the departure airport, the second geographical location of the arrival airport, the departure time and the arrival time of the target flight, the target daylight saving time of the target flight can be determined according to the first geographical location and the second geographical location. Then, according to the departure time, the arrival time, the departure daylight saving time and the arrival daylight saving time in the target daylight saving time, the flight time of the target flight can be determined according to the flight route of the target flight, thereby solving the technical problem of being unable to accurately determine the flight time of the flight, and achieving the technical effect of being able to accurately determine the flight time of the flight.

[0160] According to an embodiment of the present invention, a flight time determination device based on a flight is provided. It should be noted that the flight time determination device based on a flight can be used to execute a flight time determination method based on a flight in an embodiment.

[0161] Figure 4 is a schematic diagram of a flight time determination device based on a flight according to an embodiment of the present invention, such as Figure 4 As shown, a flight time determination device 400 based on a flight may include: a first determination unit 401 , a second determination unit 402 and a third determination unit 403 .

[0162] The first determining unit 401 is used to determine a first geographical location of a departure airport, a second geographical location of an arrival airport, a departure time, and an arrival time of a target flight.

[0163] The second determination unit 402 is used to determine the target daylight saving time of the target flight based on the first geographical location and the second geographical location, wherein the target daylight saving time includes a take-off daylight saving time and an arrival daylight saving time, the take-off daylight saving time is used to represent the daylight saving time in the first geographical location, and the arrival daylight saving time is used to represent the daylight saving time in the second geographical location.

[0164] The third determining unit 403 is used to determine the flight time of the target flight according to the flight route of the target flight based on the take-off time, the arrival time, and the take-off daylight saving time and the arrival daylight saving time in the target daylight saving time.

[0165] Optionally, the second determination unit 402 may include: a first acquisition module, used to acquire identification information of the target daylight saving time based on the stored information of the target flight, wherein the identification information is used to identify an acquisition strategy for the target daylight saving time, and the acquisition strategy is used to characterize rules for acquiring the target daylight saving time; a first determination module, used to determine the target daylight saving time based on the identification information, the first geographic location and the second geographic location.

[0166] Optionally, the first determination module may include: a first acquisition submodule, used to acquire a first city information file of a first geographic location and a second city information file of a second geographic location in response to the identification information being a first target value; a second acquisition submodule, used to parse and process the first city information file to obtain a first processing result, and to parse and process the second city information file to obtain a second processing result; the first determination submodule, used to determine the target daylight saving time based on the first processing result and the second processing result.

[0167] Optionally, the first acquisition submodule can be used to determine the target daylight saving time in response to the identification information being a second target value, based on a first preset daylight saving time for the first geographic location and a second preset daylight saving time for the second geographic location, wherein the second target value is less than the first target value.

[0168] Optionally, the take-off summer time includes a first take-off summer time and a second take-off summer time, and the arrival summer time includes a first arrival summer time and a second arrival summer time, wherein the first take-off summer time is less than the second take-off summer time, and the first arrival summer time is less than the second arrival summer time. The third determination unit 403 may include: a second acquisition module, used to acquire the take-off time zone and arrival time zone of the target flight; a third acquisition module, used to acquire the take-off summer time parameters of the target flight in response to the take-off time being greater than the first take-off summer time and less than the second take-off summer time, a fourth acquisition module, used to acquire the arrival summer time parameters of the target flight in response to the arrival time being greater than the first arrival summer time and less than the second arrival summer time; a second determination module, used to determine the flight time based on the take-off time zone, the arrival time zone, the take-off summer time parameters, the arrival summer time parameters, the take-off time and the arrival time.

[0169] Optionally, the second determination module may include: a second determination submodule, used to determine the equivalent zero time zone time of the departure place of the target flight based on the departure time, the departure time zone and the departure daylight saving time parameters; a third determination submodule, used to determine the equivalent zero time zone time of the arrival place of the target flight based on the arrival time, the arrival time zone and the arrival daylight saving time parameters; a fourth determination submodule, used to determine the flight time based on the equivalent zero time zone time of the departure place and the equivalent zero time zone time of the arrival place.

[0170] Optionally, the fourth determination submodule is further used to perform a difference operation on the equivalent zero time zone time of the arrival location and the equivalent zero time zone time of the departure location to obtain a target difference; and to determine the target difference as the flight time.

[0171] In this embodiment, a first determining unit determines a first geographical location of a departure airport, a second geographical location of an arrival airport, a departure time, and an arrival time of the target flight; a second determining unit determines a target daylight saving time of the target flight based on the first geographical location and the second geographical location, wherein the target daylight saving time includes a departure daylight saving time and an arrival daylight saving time, the departure daylight saving time is used to characterize the daylight saving time in the first geographical location, and the arrival daylight saving time is used to characterize the daylight saving time in the second geographical location; a third determining unit determines the flight time of the target flight according to the flight route of the target flight based on the departure time, the arrival time, and the departure daylight saving time and the arrival daylight saving time in the target daylight saving time, thereby solving the technical problem of being unable to accurately determine the flight time of the flight and achieving the technical effect of being able to accurately determine the flight time of the flight.

[0172] According to an embodiment of the present invention, a computer-readable storage medium is also provided, which includes a stored program, wherein when the program is executed by a processor, the device where the readable storage medium is located is controlled to execute the flight time determination method based on flights in the embodiment.

[0173] According to an embodiment of the present invention, a processor is further provided, the processor being used to run a program, wherein the flight time determination method based on a flight in the embodiment is executed when the program is run.

[0174] According to an embodiment of the present invention, a computer program product is also provided, including a computer program, and when the computer program is executed by a processor, the flight time determination method based on flights in the embodiment of the present invention is implemented.

[0175] According to an embodiment of the present invention, an electronic device is further provided, the electronic device comprising a processor and a memory for storing instructions executable by the processor, wherein the processor is configured to execute the instructions to implement the flight time determination method based on flights in the embodiment of the present invention.

[0176] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.

[0177] In the above embodiments of the present invention, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0178] In the several embodiments provided by the present invention, it should be understood that the disclosed technical content can be implemented in other ways. Among them, the device embodiments described above are only schematic, for example, the division of units can be a logical function division, and there can be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point, the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of units or modules, which can be electrical or other forms.

[0179] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed over multiple units. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.

[0180] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0181] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server or a network device, etc.) to perform all or part of the steps of the methods of each embodiment of the present invention. The aforementioned storage medium includes: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, magnetic disk or optical disk and other media that can store program codes.

[0182] The above are only preferred embodiments of the present invention. It should be pointed out that, for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.

Claims

1. A method for determining flight time based on a flight, characterized in that: include: Determine a first geographical location of a departure airport, a second geographical location of an arrival airport, a departure time, and an arrival time of a target flight; Determine a target daylight saving time of the target flight based on the first geographical location and the second geographical location, wherein the target daylight saving time includes a take-off daylight saving time and an arrival daylight saving time, the take-off daylight saving time is used to represent the daylight saving time in the first geographical location, and the arrival daylight saving time is used to represent the daylight saving time in the second geographical location; Based on the take-off time, the arrival time, and the take-off daylight saving time and the arrival daylight saving time in the target daylight saving time, the flight time of the target flight is determined according to the flight route of the target flight.

2. The method according to claim 1, characterized in that Determining a target daylight saving time for the target flight based on the first geographical location and the second geographical location includes: Based on the stored information of the target flight, obtaining identification information of the target daylight saving time, wherein the identification information is used to identify an acquisition strategy of the target daylight saving time, and the acquisition strategy is used to characterize a rule for acquiring the target daylight saving time; The target daylight saving time is determined based on the identification information, the first geographical location and the second geographical location.

3. The method according to claim 2, characterized in that Determining the target daylight saving time based on the identification information, the first geographical location, and the second geographical location includes: In response to the identification information being a first target value, acquiring a first city information file of the first geographical location and a second city information file of the second geographical location; Performing parsing processing on the first city information file to obtain a first processing result, and performing the parsing processing on the second city information file to obtain a second processing result; The target daylight saving time is determined based on the first processing result and the second processing result.

4. The method according to claim 3, characterized in that Determining the target daylight saving time based on the identification information, the first geographical location, and the second geographical location includes: In response to the identification information being a second target value, the target daylight saving time is determined based on a first preset daylight saving time of the first geographic location and a second preset daylight saving time of the second geographic location, wherein the second target value is less than the first target value.

5. The method according to claim 1, characterized in that: The take-off daylight saving time includes a first take-off daylight saving time and a second take-off daylight saving time, and the arrival daylight saving time includes a first arrival daylight saving time and a second arrival daylight saving time, wherein the first take-off daylight saving time is less than the second take-off daylight saving time, and the first arrival daylight saving time is less than the second arrival daylight saving time. Based on the take-off time, the arrival time, and the take-off daylight saving time and the arrival daylight saving time in the target daylight saving time, according to the flight route of the target flight, the flight time of the target flight is determined, including: Obtain the departure time zone and arrival time zone of the target flight; In response to the take-off time being greater than the first take-off daylight saving time and less than the second take-off daylight saving time, acquiring a take-off daylight saving time parameter of the target flight, In response to the arrival time being greater than the first arrival daylight saving time and less than the second arrival daylight saving time, acquiring an arrival daylight saving time parameter of the target flight; The flight time is determined based on the take-off time zone, the arrival time zone, the take-off daylight saving time parameter, the arrival daylight saving time parameter, the take-off time and the arrival time.

6. The method according to claim 5, characterized in that Determining the flight time based on the take-off time zone, the arrival time zone, the take-off daylight saving time parameter, the arrival daylight saving time parameter, the take-off time, and the arrival time includes: Determine the equivalent zero time zone time of the departure location of the target flight based on the departure time, the departure time zone and the departure daylight saving time parameter; Determine the zero time zone equivalent time of the arrival location of the target flight based on the arrival time, the arrival time zone and the arrival daylight saving time parameter; The flight time is determined based on the equivalent zero time zone time of the departure location and the equivalent zero time zone time of the arrival location.

7. The method according to claim 6, characterized in that Determining the flight time based on the equivalent zero time zone time of the departure location and the equivalent zero time zone time of the arrival location includes: Performing a difference operation on the equivalent zero time zone time of the arrival location and the equivalent zero time zone time of the departure location to obtain a target difference value; The target difference is determined as the flight time.

8. A flight time determination device based on a flight, characterized in that: include: A first determining unit, used to determine a first geographical location of a departure airport, a second geographical location of an arrival airport, a departure time, and an arrival time of a target flight; A second determining unit is configured to determine a target daylight saving time of the target flight based on the first geographical location and the second geographical location, wherein the target daylight saving time includes a take-off daylight saving time and an arrival daylight saving time, the take-off daylight saving time is used to represent the daylight saving time in the first geographical location, and the arrival daylight saving time is used to represent the daylight saving time in the second geographical location; The third determining unit is used to determine the flight time of the target flight according to the flight route of the target flight based on the take-off time, the arrival time, and the take-off daylight saving time and the arrival daylight saving time in the target daylight saving time.

9. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes a stored program, wherein when the program is executed by a processor, the device where the storage medium is located is controlled to execute the method according to any one of claims 1 to 7.

10. An electronic device, characterized in that: The invention comprises one or more processors and a memory, wherein the memory is used to store one or more programs, wherein when the one or more programs are executed by the one or more processors, the one or more processors implement the method described in any one of claims 1 to 7.

Citation Information

Patent Citations

  • Converter for flight information time zone and time difference and summer time and processing method thereof

    CN101615350A

  • Control method and device for flight equipment

    CN106227233A

  • Information processing method and device, electronic equipment and computer readable storage medium

    CN112308285A

  • Flight flight time prediction method and device based on artificial intelligence, and medium

    CN118674112A