Multi-time-zone daily switching processing method and device, electronic equipment, medium and program
By determining the benchmark reference date and time and changing the daily cut dates of multiple time zones, the complexity of daily cut processing of distributed batch systems in multiple batches and multi-time zone scenarios is solved, and efficient batch development and data consistency are achieved.
Patent Information
- Application Number
- CN202510019912.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-01-07
- Publication Date
- 2025-04-18
AI Technical Summary
In the multi-batch and multi-time zone scenarios, the daily cut date of the distributed batch system is difficult to accurately determine based on the local time of each time zone, resulting in the complexity of the batch timing daily cut process.
By determining the reference date and time of the distributed batch service system, and changing the day-cut dates of multiple time zones according to the reference date and time, the distributed batch service is then processed.
The batch timed daily cutting process in multiple batches and multi-time zone scenarios is simplified, the efficiency of batch development is improved, and data consistency is ensured.
Smart Images

Figure CN119847681A_ABST
Abstract
Description
Technical Field
[0001] Embodiments of the present invention relate to the field of financial technology, and in particular, to a method, device, electronic device, medium and program for processing daily changes in multiple time zones. Background Art
[0002] In current distributed batch systems, daily switching is mostly done online, but online switching increases the coupling with online applications, which is not conducive to independent maintenance of applications. Therefore, scheduled daily switching becomes a more appropriate choice.
[0003] However, in scenarios involving multiple batches and multiple time zones, the day-cut date of a distributed batch system needs to be determined based on the local time of each time zone. Since batch containers are often deployed in one geographic area, the system can only obtain the system time of the container's geographic location, and cannot provide accurate time judgment for day-cut operations in different time zones in different geographic areas. Summary of the invention
[0004] The embodiments of the present invention provide a multi-time zone day-cutting processing method, device, electronic device, medium and program, which can simplify the batch timed day-cutting process in multi-batch multi-time zone scenarios, thereby improving the efficiency of batch development.
[0005] According to one aspect of the present invention, a multi-time zone daily cutting processing method is provided, which is applied to daily cutting processing containers, comprising:
[0006] Determine the base reference date and time for distributed batch business systems;
[0007] Uniformly switching the day-cutting dates of multiple time zones in the distributed batch business system according to the benchmark reference date and time;
[0008] Processing the distributed batch business of the distributed batch business system according to the switched day-cut date;
[0009] The benchmark reference date and time is manually configured, or the benchmark reference date and time is obtained through the daily cutting processing container.
[0010] According to another aspect of the present invention, a multi-time zone daily cutting processing device is provided, which is configured in a daily cutting processing container and comprises:
[0011] A base reference date and time determination module, used to determine a base reference date and time for a distributed batch business system;
[0012] A day-cut date switching module, used for uniformly switching the day-cut dates of multiple time zones in the distributed batch business system according to the benchmark reference date time;
[0013] A business processing module, used for processing the distributed batch business of the distributed batch business system according to the switched day-cut date;
[0014] The benchmark reference date and time is manually configured, or the benchmark reference date and time is obtained through the daily cutting processing container.
[0015] According to another aspect of the present invention, an electronic device is provided, the electronic device comprising:
[0016] at least one processor; and
[0017] a memory communicatively connected to the at least one processor; wherein,
[0018] The memory stores a computer program that can be executed by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the multi-time zone day-cut processing method described in any embodiment of the present invention.
[0019] According to another aspect of the present invention, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the multi-time zone day-cut processing method described in any embodiment of the present invention when executed.
[0020] According to another aspect of the present invention, a computer program product is provided, including a computer program, wherein when the computer program is executed by a processor, the multi-time zone day-cut processing method described in any embodiment of the present invention is implemented.
[0021] The technical solution of this embodiment first determines the benchmark reference date and time through manual configuration or a day-cut processing container. After determining the benchmark reference date of the distributed batch business system, the day-cut dates of multiple time zones in the distributed batch business system can be uniformly switched according to the benchmark reference date and time, so that the distributed batch business of the distributed batch business system can be processed according to the switched day-cut dates, which solves the problem that the prior art cannot realize batch timed day-cutting in multi-batch and multi-time zone scenarios, and can simplify the batch timed day-cutting process in multi-batch and multi-time zone scenarios, thereby improving the efficiency of batch development.
[0022] It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present invention, nor are they intended to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0023] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0024] Figure 1 is a flow chart of a multi-time zone day-cutting processing method provided by Embodiment 1 of the present invention;
[0025] Figure 2 is a flow chart of a multi-time zone day-cutting processing method provided by Embodiment 2 of the present invention;
[0026] Figure 3 is a flowchart of a specific multi-time zone day-cutting processing method provided by Embodiment 2 of the present invention;
[0027] Figure 4 is a flow chart of a time difference conversion module provided in Embodiment 2 of the present invention;
[0028] Figure 5 is a schematic diagram of a multi-time zone day-cut processing device provided by Embodiment 3 of the present invention;
[0029] Figure 6 A schematic diagram of the structure of an electronic device provided in Embodiment 4 of the present invention. DETAILED DESCRIPTION
[0030] 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.
[0031] It should be noted that the terms "first", "second" and "target" 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.
[0032] Embodiment 1
[0033] Figure 1 is a flowchart of a multi-time zone daily cutting processing method provided by the first embodiment of the present invention. This embodiment is applicable to the case of distributed timed batch daily cutting in a multi-batch multi-time zone scenario. The method can be executed by a multi-time zone daily cutting processing device, which can be implemented by software and / or hardware, and can generally be integrated in an electronic device, which can be a daily cutting processing container. Figure 1 As shown, the method includes the following operations:
[0034] S110. Determine a base reference date and time for the distributed batch business system.
[0035] Among them, the distributed batch business system can be a system for processing batch business. The distributed batch business system can execute tasks in parallel on multiple computing nodes to improve task processing efficiency and throughput. Exemplarily, the distributed batch business system can include but is not limited to a distributed architecture accounting system, a core banking system, and a distributed payment platform system, etc., as long as it is a distributed batch business system that needs to perform daily cutting processing. The embodiment of the present invention does not limit the specific system included in the distributed batch business system. The reference reference date and time can be the date and time selected as the reference reference of the daily cutting date of multiple time zones during the daily cutting processing of multiple time zones. The so-called daily cutting can be understood as the process of settling, archiving and initializing the business data of one day in a distributed batch business system such as a bank, a financial institution, and a communication system. Daily cutting usually occurs at a specific time point every day, marking the end of a business day and the beginning of a new business day. The daily cutting date of multiple time zones can be understood as the time when the system performs data daily cutting processing operations in the corresponding time zones of different geographical areas.
[0036] In an embodiment of the present invention, in order to realize distributed scheduled batch day-cutting operations in multi-batch and multi-time zone scenarios, the day-cutting processing container can first determine the benchmark reference date and time of the distributed batch business system as reference data for day-cutting processing in multiple time zones.
[0037] S120. Uniformly switch the day-cut dates of multiple time zones in the distributed batch business system according to the benchmark reference date and time; wherein the benchmark reference date and time is manually configured, or the benchmark reference date and time is obtained through the day-cut processing container.
[0038] Optionally, the base reference date and time can be manually configured or obtained through a day-cut processing container. Obtaining the base reference date and time through the above two different methods can achieve unified switching of day-cut dates in multiple time zones, and can more flexibly meet the needs of business operations.
[0039] Accordingly, after determining the base reference date and time, the day-cut dates of multiple time zones can be uniformly switched according to the base reference date and time. For example, assuming that the geographical area where the day-cut processing container is located is the East Eighth District, the day-cut dates of the East One District and the West Three District can be uniformly switched based on the base reference date and time obtained by the day-cut processing container. The above scheme improves the efficiency of batch day-cut processing by uniformly switching the day-cut dates of multiple time zones.
[0040] S130: Process the distributed batch service of the distributed batch service system according to the switched day-cut date.
[0041] Accordingly, after the day-cut dates of multiple time zones in the distributed batch business system are uniformly switched, the distributed batch tasks of the distributed batch business system can be processed on the switched day-cut dates, thereby maintaining the consistency of the distributed batch business system data.
[0042] The technical solution of this embodiment first determines the benchmark reference date and time through manual configuration or a day-cut processing container. After determining the benchmark reference date of the distributed batch business system, the day-cut dates of multiple time zones in the distributed batch business system can be uniformly switched according to the benchmark reference date and time, so that the distributed batch business of the distributed batch business system can be processed according to the switched day-cut dates, which solves the problem that the prior art cannot realize batch timed day-cutting in multi-batch and multi-time zone scenarios, and can simplify the batch timed day-cutting process in multi-batch and multi-time zone scenarios, thereby improving the efficiency of batch development.
[0043] Embodiment 2
[0044] Figure 2 is a flowchart of a method for processing a day cut in multiple time zones provided by the second embodiment of the present invention. This embodiment is specific based on the above embodiment. In this embodiment, multiple specific optional implementation methods for determining a base reference date and time and uniformly switching the day cut dates in multiple time zones according to the base reference date and time are provided. Figure 2 As shown, the method of this embodiment may include:
[0045] S210, obtaining the current system time.
[0046] The current system time may be the time when the daily processing container is running. For example, when the daily processing container is deployed in the East 8 zone, the current system time is the local time of the East 8 zone.
[0047] In the embodiment of the present invention, in order to determine the benchmark reference date and time, the daily processing container may first obtain the current system time as a basis for determining whether the daily processing cycle has been reached.
[0048] S220: When it is determined that the current system time reaches the daily switching processing period, start the daily switching processing program.
[0049] The daily processing cycle may be the entire time period from the end of one working day to the beginning of the next working day in a system that needs to perform day-end processing, such as a bank, a financial institution, a communication system, and a distributed system. The daily processing cycle may include stages such as daily processing, day-end batch processing, and day-end preparation. The daily processing program may be a software program for performing the daily processing. It is understood that the daily processing cycle may be preset.
[0050] Accordingly, after obtaining the current system time, it can be determined whether the current system time has reached the daily switching processing cycle. When it is determined that the current system time has reached the daily switching processing cycle, the daily switching processing program can be started to uniformly switch the daily switching dates of multiple time zones. Exemplarily, the daily switching processing program can be started regularly through a DBF (DataBase File, database file) control bar.
[0051] S230. Obtain a reference date and time of the distributed batch business system through the day-cutting processing program.
[0052] Accordingly, when it is determined that the current system time has reached the day-cut processing cycle, after starting the day-cut processing program, the benchmark reference date and time of the distributed batch business system can be obtained through the day-cut processing program. In the above scheme, the benchmark reference date and time of the distributed batch business system can be obtained through the day-cut processing program, which can ensure the unified switching of the day-cut dates in multiple time zones and improve the efficiency of the system batch processing.
[0053] In an optional embodiment of the present invention, if the benchmark reference date and time is manually configured, then determining the benchmark reference date and time of the distributed batch business system may include: obtaining the manual configuration parameters passed in by the day-cutting processing program; and determining the manual configuration parameters as the benchmark reference date and time of the distributed batch business system.
[0054] Among them, the manual configuration parameters can be time parameters configured by the system administrator according to the time zone that needs to be processed for day switching. The manual configuration parameters can be calculated by the system administrator according to the corresponding relationship between the current system time and each time zone. It can be understood that one manual configuration parameter can correspond to the day switching dates of multiple time zones, and the system administrator can enter multiple manual configuration parameters to complete the day switching processing of all time zones.
[0055] In an embodiment of the present invention, when the benchmark reference date and time is manually configured, in order to determine the benchmark reference date and time of the distributed batch business system, the manually configured parameters passed in by the day-cut processing program can be first obtained. Further, when the manual configuration is not empty, the manually configured parameters can be determined as the benchmark reference date and time of the distributed batch business system. Optionally, the number of manually configured parameters can be multiple, which can be specifically determined according to the day-cut processing requirements of multiple time zones. The embodiment of the present invention does not limit the specific number of manually configured parameters. Determining the manually configured parameters as the benchmark reference date and time of the distributed batch business system can provide the system with a more flexible, accurate and controllable time reference, thereby meeting complex and changing business needs.
[0056] S240a: When the benchmark reference date and time is manually configured, determine a plurality of target time zones that match the benchmark reference date and time.
[0057] The target time zone may be a time zone that matches the manually configured reference date. Exemplarily, when manually configuring the reference date and time, the reference date and time may be calculated according to the time zone where the system that needs to perform the day-cutting process is located. It is understood that the reference date and time of multiple time zones may be the same or different.
[0058] Specifically, after the base reference date and time is determined by manual configuration, multiple target time zones that match the base reference date and time can be determined, so that the day-cut dates of multiple target time zones can be uniformly switched according to the base reference date and time. For example, the day-cut dates of East Zone 1 and East Zone 2 are uniformly switched through base reference date and time A; the day-cut dates of West Zone 1 and West Zone 2 are uniformly switched through base reference date and time B.
[0059] S250a, uniformly switching the day-cut date of the target time zone according to the benchmark reference date and time.
[0060] Correspondingly, after determining multiple target time zones that match the base reference date and time, the day-cut date of the target time zone can be uniformly switched according to the base reference date and time, that is, the day-cut date of multiple target time zones is switched to the base reference date and time. The manual configuration parameters are determined as the base reference date and time, and the day-cut date of multiple target time zones is further uniformly switched according to the base reference date and time, realizing the scheduled day-cut operation in multiple batches and multiple time zones, and improving the efficiency of system batch development.
[0061] In an optional embodiment of the present invention, if the benchmark reference date and time is obtained through the daily cutting processing container, then determining the benchmark reference date and time may include: obtaining the manual configuration parameters passed in by the daily cutting processing program; when it is determined that the manual configuration parameters are empty, using the current system time as the benchmark reference date and time of the distributed batch business system.
[0062] In an embodiment of the present invention, when the base reference date and time is obtained through the day-cut processing container, in order to determine the base reference date and time, the manual configuration parameters passed in by the day-cut processing program can be first obtained. Further, when it is determined that the manual configuration parameters are empty, that is, no manual configuration parameters are passed in, the current system time can be used as the base reference date and time of the distributed batch business system, and the subsequent day-cut date operations of uniformly switching multiple time zones according to the base reference date and time are performed. In the above scheme, the current system time is used as the base reference time, and the subsequent day-cut date operations of uniformly switching multiple time zones according to the base reference date and time are performed, which facilitates the system to perform day-cut processing operations in multiple time zones without pre-configuration of manual parameters, thereby improving the system batch processing efficiency.
[0063] Accordingly, the above method may further include the following operations:
[0064] S240b. When the base reference date and time is obtained through the day-cutting processing container, the time zone identifier of each time zone is obtained.
[0065] The time zone identifier may be a unique identifier of the time zone that needs to be processed by the day. It is understandable that the time zones that need to be processed by the day need to be numbered in advance so as to obtain the time zone identifiers of each time zone.
[0066] Specifically, after obtaining the base reference date and time through the day-cut processing container, the time zone identifier of each time zone may be obtained, and then the local date and time of each time zone may be calculated.
[0067] S250b: Calculate the local date and time of each time zone according to the benchmark reference date and time and the time zone identifier of each time zone.
[0068] The local date and time of each time zone may be the current date and time of the time zone where the date switching operation needs to be performed.
[0069] Accordingly, after obtaining the time zone identifiers of each time zone, the matching time zone can be determined according to the time zone identifiers of each time zone. Further, the current date and time of each time zone can be calculated according to the reference date and time, that is, the current system time, as reference data for the day-cutting process of multiple time zones.
[0070] S260b, uniformly switching the day-cutting date of the target time zone according to the time range of the local date and time of each time zone and the benchmark reference date and time.
[0071] The time range of the local date and time in each time zone may be the range of the local date and time in each time zone determined according to a preset day-cut processing rule. The day-cut processing rule may be a rule for performing day-cut processing operations within a specific time range determined according to multiple time zones.
[0072] Accordingly, after calculating the local date and time of each time zone according to the base reference date and time and the time zone identifier of each time zone, the day-cut date of the target time zone can be uniformly switched according to the time range of the local date and time of each time zone and the base reference date and time. By uniformly switching the day-cut dates of multiple target time zones through the time range of the local date and time of each time zone and the base reference date and time, the complexity of separately configuring and managing the day-cut dates of each time zone can be reduced, and the efficiency of batch processing can be improved.
[0073] Figure 3 is a flowchart of a specific multi-time zone day-cut processing method provided by Embodiment 2 of the present invention. In a specific example, Figure 3 As shown, after the day-cutting operation is called up, it can be determined first whether there are any manual configuration parameters passed in. When there are manual configuration parameters passed in, the manual configuration parameters can be used as the base reference date and time, and further, the target time zone that matches the base reference date and time can be determined, so that the base reference date and time can be used as the day-cutting date of the target time zone, and the unified switching of the day-cutting dates of multiple target time zones can be achieved. When there are no manual configuration parameters passed in, the current system time can be used as the base reference date and time, and further, the batch number of the time zone that needs to be processed for day-cutting, that is, the time zone identifier of each time zone, can be obtained, so that the day-cutting date of each time zone can be obtained through the time difference conversion module. After determining the day-cutting date of each time zone, the day-cutting date of each time zone can be uniformly switched in the controller.
[0074] In an optional embodiment of the present invention, the unified switching of the day-cutting date of the target time zone according to the time range of the local date and time of each time zone and the benchmark reference date and time may include: when it is determined that the local date and time of each time zone belongs to the first time range, using the date of the day before the benchmark reference date and time as the day-cutting date of the first target time zone; when it is determined that the local date and time belongs to the second time range, using the benchmark reference date and time as the day-cutting date of the second target time zone.
[0075] Among them, the first time range can be a time range that uses the date of the day before the benchmark reference date as the day-cut date of the first target time zone. The second time range can be a time range that uses the benchmark reference date as the day-cut date of the second target time zone. The first target time zone can be a time zone where the local date and time are within the first time range. The second target time zone can be a time zone where the local date and time are within the second time range. It should be noted that 00:00-24:00 can be divided into the first time range and the second time range, that is, the local date and time of each time zone either belongs to the first time range or the second time range.
[0076] In an embodiment of the present invention, the day-cut date of the target time zone is uniformly switched according to the time range of the local date and time of each time zone and the benchmark reference date and time. When it is determined that the local date and time of each time zone belongs to the first time range, the date of the previous day of the benchmark reference date and time can be used as the day-cut date of the first target time zone; when it is determined that the local date and time belongs to the second time range, the benchmark reference date and time can be used as the day-cut date of the second target time zone. In the above scheme, the time range to which the local date and time of each time zone belongs is determined, and then the day-cut dates of multiple time zones are determined according to the time range to which the local date and time of each time zone belongs, thereby realizing the unified switching of the day-cut dates of multiple time zones. The data of each time zone can be switched and processed according to a unified time range, which can ensure the consistency and integrity of data on a global scale and improve the efficiency of batch processing.
[0077] Figure 4 is a flow chart of a time difference conversion module provided by Embodiment 2 of the present invention. In a specific example, Figure 4 As shown, assuming that the current system date is December 19, 2024, the first time range is 00:00-18:00, and the second time range is 18:00-24:00. When the local date and time of time zone A is 11:00, the local date and time of time zone A is within the time range of 00:00-18:00, then December 18, 2024 can be used as the day-cut date of time zone A, the day-cut date of the controller is updated, and the day-cut is completed. When the local date and time of time zone B is 21:00, the local date and time of time zone B is within the time range of 18:00-24:00, then December 19, 2024 can be used as the day-cut date of time zone B, the day-cut date of the controller is updated, and the day-cut is completed.
[0078] The technical solution of this embodiment first obtains the current system time, and when it is determined that the current system time has reached the day-cut processing cycle, the day-cut processing program is started. Furthermore, the base reference date and time can be obtained through the day-cut processing program. When the reference date and time are manually configured, multiple target time zones that match the base reference date can be determined, and then the day-cut date of the target time zone can be uniformly switched according to the base reference date and time; when the reference date and time are obtained through the day-cut processing container, the time zone identifier of each time zone can be obtained, and then the local time of each time zone can be calculated according to the base reference date and time and the time zone identifier of each time zone, so that the day-cut date of the target time zone can be uniformly switched according to the time range of the local date and time of each time zone and the base reference date and time, which solves the problem that the prior art cannot realize batch timed day cutting in multi-batch and multi-time zone scenarios, and can simplify the batch timed day cutting process in multi-batch and multi-time zone scenarios, thereby improving the efficiency of batch development.
[0079] Specific application scenarios
[0080] In order to more clearly describe the technical solution provided by the embodiment of the present invention, the embodiment of the present invention provides a core banking system day-cut processing method in a multi-time zone scenario. In a specific example, the following steps may be included:
[0081] Step 1: Get the current system time of the daily cutting processing container and determine whether the current system time reaches the daily cutting processing cycle. If the current system time reaches the daily cutting processing cycle, the daily cutting operation is called up regularly through the DBF control bar to start the daily cutting processing program.
[0082] Step 2: Get the manual configuration parameters passed in by the day-cutting processing program. If the manual configuration parameters are determined to be not empty, use the manual configuration parameters as the day-cutting date for the corresponding time zone. If the manual configuration parameters are determined to be empty, the local date and time of multiple time zones in the core banking system can be determined based on the current system time.
[0083] Step 3: When the local time of time zone A in the core banking system is within the range of 00:00-18:00, the date of the previous day of the current system time is used as the day-cut date of time zone A in the core banking system; when the local time of time zone B in the core banking system is within the range of 18:00-24:00, the current system time is used as the day-cut date of time zone B in the core banking system.
[0084] Step 4: After completing the unified switching of the day-cut dates for multiple time zones in the core banking system according to the above method, the distributed batch business of the core banking system can be processed under the switched day-cut dates.
[0085] In the embodiment of the present invention, by obtaining the current system time and judging whether to start the day-cut processing program of the core banking system according to the current system time, the day-cut processing program is started when the current system time reaches the day-cut processing cycle. Further, the manual configuration parameters can be obtained, and when the manual configuration parameters are not empty, the day-cut dates of multiple time zones in the core banking system are directly switched according to the manual configuration parameters; when the manual configuration parameters are empty, the local date and time of multiple time zones in the core banking system can be further determined according to the current system time, so that the day-cut dates of multiple time zones can be determined according to the time range hit by the local date and time of multiple time zones in the core banking system, which solves the problem that the prior art cannot realize batch timed day-cutting in multi-batch and multi-time zone scenarios, and can simplify the batch timed day-cutting process in multi-batch and multi-time zone scenarios, thereby improving the efficiency of batch development.
[0086] In the technical solution of the present disclosure, the information collected is information and data authorized by the user or fully authorized by all parties, and the collection, storage, use, processing, transmission, provision, disclosure and application of the relevant data comply with the relevant laws, regulations and standards of the relevant countries and regions, take necessary confidentiality measures, do not violate public order and good morals, and provide corresponding operation entrances for users to choose to authorize or refuse.
[0087] It should be noted that any arrangement and combination of the technical features in the above embodiments also falls within the protection scope of the present invention.
[0088] Embodiment 3
[0089] Figure 5 is a schematic diagram of a multi-time zone day-cut processing device provided by Embodiment 3 of the present invention, such as Figure 5 As shown, the device is configured in a day-cut processing container, including: a reference date and time determination module 310, a day-cut date switching module 320 and a business processing module 330, wherein:
[0090] The benchmark reference date and time determination module 310 is used to determine the benchmark reference date and time of the distributed batch business system.
[0091] The day-cut date switching module 320 is used to uniformly switch the day-cut dates of multiple time zones in the distributed batch business system according to the benchmark reference date time.
[0092] The business processing module 330 is used to process the distributed batch business of the distributed batch business system according to the switched day-cut date.
[0093] The benchmark reference date and time is manually configured, or the benchmark reference date and time is obtained through the daily cutting processing container.
[0094] The technical solution of this embodiment first determines the benchmark reference date and time through manual configuration or a day-cut processing container. After determining the benchmark reference date of the distributed batch business system, the day-cut dates of multiple time zones in the distributed batch business system can be uniformly switched according to the benchmark reference date and time, so that the distributed batch business of the distributed batch business system can be processed according to the switched day-cut dates, which solves the problem that the prior art cannot realize batch timed day-cutting in multi-batch and multi-time zone scenarios, and can simplify the batch timed day-cutting process in multi-batch and multi-time zone scenarios, thereby improving the efficiency of batch development.
[0095] Optionally, the benchmark reference date and time determination module 310 is specifically used to: obtain the current system time; when it is determined that the current system time reaches the daily cutting processing cycle, start the daily cutting processing program; and obtain the benchmark reference date and time of the distributed batch business system through the daily cutting processing program.
[0096] Optionally, the benchmark reference date and time determination module 310 is further used to: obtain the manual configuration parameters passed in by the day-cutting processing program; and determine the manual configuration parameters as the benchmark reference date and time of the distributed batch business system.
[0097] Optionally, the day-cut date switching module 320 is specifically used to: determine multiple target time zones that match the base reference date and time; and uniformly switch the day-cut date of the target time zone according to the base reference date and time.
[0098] Optionally, the base reference date and time determination module 310 is further used to: obtain the manual configuration parameters passed in by the day-cutting processing program; and when it is determined that the manual configuration parameters are empty, use the current system time as the base reference date and time of the distributed batch business system.
[0099] Optionally, the day-cut date switching module 320 is also used to: obtain the time zone identifier of each time zone; calculate the local date and time of each time zone according to the benchmark reference date and time and the time zone identifier of each time zone; and uniformly switch the day-cut date of the target time zone according to the time range of the local date and time of each time zone and the benchmark reference date and time.
[0100] Optionally, the day-cut date switching module 320 is also used to: when it is determined that the local date and time belongs to the first time range, use the date of the day before the benchmark reference date and time as the day-cut date for the first target time zone; when it is determined that the local date and time belongs to the second time range, use the benchmark reference date and time as the day-cut date for the second target time zone.
[0101] The above-mentioned multi-time zone day-cut processing device can execute the multi-time zone day-cut processing method provided by any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method. For technical details not fully described in this embodiment, please refer to the multi-time zone day-cut processing method provided by any embodiment of the present invention.
[0102] Since the multi-time zone day-cut processing device introduced above is a device that can execute the multi-time zone day-cut processing method in the embodiment of the present invention, based on the multi-time zone day-cut processing method introduced in the embodiment of the present invention, the technical personnel of the field can understand the specific implementation of the multi-time zone day-cut processing device of the present embodiment and its various variations, so how the multi-time zone day-cut processing device implements the multi-time zone day-cut processing method in the embodiment of the present invention is not described in detail here. As long as the technical personnel of the field implement the device used by the multi-time zone day-cut processing method in the embodiment of the present invention, it belongs to the scope of protection of this application.
[0103] Embodiment 4
[0104] Figure 6 A schematic diagram of the structure of an electronic device 10 that can be used to implement an embodiment of the present invention is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices (such as helmets, glasses, watches, etc.) and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present invention described and / or required herein.
[0105] like Figure 6 As shown, the electronic device 10 includes at least one processor 11, and a memory connected to the at least one processor 11, such as a read-only memory (ROM) 12, a random access memory (RAM) 13, etc., wherein the memory stores a computer program that can be executed by at least one processor, and the processor 11 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 12 or the computer program loaded from the storage unit 18 to the random access memory (RAM) 13. In the RAM 13, various programs and data required for the operation of the electronic device 10 can also be stored. The processor 11, the ROM 12, and the RAM 13 are connected to each other through a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.
[0106] A number of components in the electronic device 10 are connected to the I / O interface 15, including: an input unit 16, such as a keyboard, a mouse, etc.; an output unit 17, such as various types of displays, speakers, etc.; a storage unit 18, such as a disk, an optical disk, etc.; and a communication unit 19, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.
[0107] The processor 11 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any appropriate processor, controller, microcontroller, etc. The processor 11 executes the various methods and processes described above, such as a multi-time zone day-cut processing method.
[0108] In some embodiments, the day-cut processing method for multiple time zones may be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as a storage unit 18. In some embodiments, part or all of the computer program may be loaded and / or installed on the electronic device 10 via the ROM 12 and / or the communication unit 19. When the computer program is loaded into the RAM 13 and executed by the processor 11, one or more steps of the day-cut processing method for multiple time zones described above may be performed. Alternatively, in other embodiments, the processor 11 may be configured to execute the day-cut processing method for multiple time zones in any other appropriate manner (e.g., by means of firmware).
[0109] Optionally, a multi-time zone day-cut processing method, applied to a day-cut processing container, may include: determining a base reference date and time for a distributed batch business system; uniformly switching the day-cut dates for multiple time zones in the distributed batch business system according to the base reference date and time; processing distributed batch business of the distributed batch business system according to the switched day-cut dates; wherein the base reference date and time is manually configured, or the base reference date and time is obtained through the day-cut processing container.
[0110] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0111] Computer programs for implementing the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that when the computer program is executed by the processor, the functions / operations specified in the flow chart and / or block diagram are implemented. The computer program may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.
[0112] In the context of the present invention, a computer-readable storage medium may be a tangible medium that may contain or store a computer program for use by or in conjunction with an instruction execution system, device, or equipment. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices, or equipment, or any suitable combination of the foregoing. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, 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 disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0113] To provide interaction with a user, the systems and techniques described herein may be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or trackball) through which the user can provide input to the electronic device. Other types of devices may also be used to provide interaction with the user; for example, the feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form (including acoustic input, voice input, or tactile input).
[0114] The systems and techniques described herein may be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.
[0115] A computing system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The client and server relationship is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services.
[0116] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps recorded in this disclosure can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solutions disclosed in this disclosure can be achieved, and this document does not limit this.
[0117] The above specific implementations do not constitute a limitation on the protection scope of the present disclosure. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present disclosure shall be included in the protection scope of the present disclosure.
Claims
1. A multi-time zone daily cutting processing method, characterized in that: Applicable to daily cutting processing containers, including: Determine the base reference date and time for distributed batch business systems; Uniformly switching the day-cutting dates of multiple time zones in the distributed batch business system according to the benchmark reference date and time; Processing the distributed batch business of the distributed batch business system according to the switched day-cut date; The benchmark reference date and time is manually configured, or the benchmark reference date and time is obtained through the daily cutting processing container.
2. The method according to claim 1, characterized in that Determining the benchmark reference date and time of the distributed batch business system includes: Get the current system time; When it is determined that the current system time reaches the daily switching processing cycle, starting the daily switching processing program; The base reference date and time of the distributed batch business system is obtained through the day-cutting processing program.
3. The method according to claim 2, characterized in that If the benchmark reference date and time is manually configured, the step of determining the benchmark reference date and time of the distributed batch business system includes: Obtaining manual configuration parameters passed in by the daily cutting processing program; The manual configuration parameters are determined as a base reference date and time for the distributed batch business system.
4. The method according to claim 3, characterized in that The step of uniformly switching the day-cutting dates of multiple time zones in the distributed batch business system according to the benchmark reference date and time includes: determining a plurality of target time zones that match the base reference date and time; The day-cut date of the target time zone is uniformly switched according to the benchmark reference date and time.
5. The method according to claim 2, characterized in that: If the reference date and time is obtained through the daily processing container, the step of determining the reference date and time of the distributed batch business system includes: Obtaining manual configuration parameters passed in by the daily cutting processing program; When it is determined that the manual configuration parameter is empty, the current system time is used as a base reference date and time of the distributed batch business system.
6. The method according to claim 5, characterized in that The step of uniformly switching the day-cutting dates of multiple time zones in the distributed batch business system according to the benchmark reference date and time includes: Get the time zone identifier of each time zone; Calculate the local date and time of each time zone according to the base reference date and time and the time zone identifier of each time zone; The day-cut date of the target time zone is uniformly switched according to the time range of the local date and time of each time zone and the benchmark reference date and time.
7. The method according to claim 6, characterized in that The method of uniformly switching the day-cut date of the target time zone according to the time range of the local date and time of each time zone and the benchmark reference date and time includes: When it is determined that the local date and time belongs to the first time range, the date one day before the base reference date and time is used as the day-cut date of the first target time zone; When it is determined that the local date and time belongs to the second time range, the base reference date and time is used as the day-cut date of the second target time zone.
8. An electronic device, characterized in that: The electronic device comprises: at least one processor; and a memory communicatively connected to the at least one processor; wherein, The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the multi-time zone day-cut processing method described in any one of claims 1-7.
9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the multi-time zone day-cut processing method described in any one of claims 1-7 when executed.
10. A computer program product comprising a computer program / instructions, wherein: When the computer program / instructions are executed by a processor, the multi-time zone day-cut processing method according to any one of claims 1 to 7 is implemented.