Multi-time-zone task processing method and device, equipment and storage medium

By obtaining and converting the time zone information of task information in the system, the standardized storage and processing of task data is realized, the problems of high system deployment costs and difficulty in international promotion under different time zones are solved, and the international adaptability of the system is improved. User experience.

CN119179561APending Publication Date: 2024-12-24创优数字科技(广东)有限公司
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202411292860.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-14
Publication Date
2024-12-24

AI Technical Summary

Technical Problem

In the context of internationalization, the existing technology needs to deploy systems separately according to time zone information in different regions, resulting in high deployment costs and is not conducive to the international promotion of the system.

Method used

By obtaining the task information sent by the user, determining the time zone information and converting it into standard task data for storage, the user requests to process it and then converts it according to its current time zone to realize unified storage and processing of any time zone.

Benefits of technology

It reduces deployment costs, simplifies the international promotion of the system, facilitates users to use, and improves the efficiency and adaptability of task processing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119179561A_ABST
    Figure CN119179561A_ABST
Patent Text Reader

Abstract

The invention discloses a multi-time-zone task processing method and device, equipment and a storage medium. The method comprises the steps of obtaining task information sent by a user; determining first time zone information and time information; according to the first time zone information and the time information, the task information is converted into standard task data according to a standard contrast time zone, and the standard task data is stored in a database; in response to a request instruction initiated by a user, extracting standard task data from the database; determining current time zone information of the user as second time zone information; and performing second conversion on the standard task data based on the second time zone information to obtain target task data, and sending the target task data to the user client for a user to perform task processing. According to the scheme, the tasks in any time zone can be converted into the standard time zone to be stored and processed and then converted into the current time zone, systems do not need to be deployed in different regions respectively, the standard mode can be converted in a unified mode, the deployment cost is reduced, a user can use the time zone conveniently, and application and popularization are facilitated.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of task processing technology, and in particular to a multi-time zone task processing method, device, equipment and storage medium. Background Art

[0002] Nowadays, all industries are gradually becoming internationalized, especially various system equipment, products or commodities will be exported. Especially for systems, systems deployed in different countries will face the problem of different time zones. Taking the same system as an example, if the system is set up in China, the task data processing in the system needs to set the task-related date and time type field to Beijing time. If the system is set up in Los Angeles, the United States, the task data processing in the system needs to set the task-related date event type to Los Angeles time. Only in this way can users use the system to process tasks conveniently.

[0003] Generally, the system is deployed in different regions according to the time zone information of the region, but this will increase the deployment cost and is not conducive to the international promotion of the system. Summary of the invention

[0004] In view of this, the present application provides a multi-time zone task processing method, apparatus, device and storage medium, which are used to solve the problem that systems are generally deployed in different regions according to the time zone information of the regions, but this will increase the deployment cost and is not conducive to the international promotion of the system.

[0005] To achieve the above objectives, the proposed solution is as follows:

[0006] In a first aspect, a multi-time zone task processing method includes:

[0007] Get the task information sent by the user;

[0008] Determine time zone information and time information from the task information, and use the time zone information as first time zone information;

[0009] According to the first time zone information and time information, and in accordance with the standard control time zone, the task information is converted into standard task data, and the standard task data is stored in a database;

[0010] Responding to a request instruction for task processing initiated by the user, extracting the standard task data from the database;

[0011] Determine the time zone information of the area where the user is currently located as the second time zone information;

[0012] The standard task data is subjected to a second conversion based on the second time zone information to obtain target task data corresponding to the area where the user is currently located, and the target task data is sent to the client where the user is currently located for the user to perform task processing.

[0013] Preferably, the converting the task information into standard task data according to the first time zone information and the time information and in accordance with the standard control time zone includes:

[0014] Based on the first time zone information, converting the time information data into standard time data corresponding to the standard reference time zone;

[0015] The task information is first converted according to the standard time data to obtain standard task data.

[0016] Preferably, determining the time zone information and the time information from the task information includes:

[0017] Determine whether the task information includes a request header;

[0018] If so, construct an interceptor, use the interceptor to intercept the request header, and extract the time zone information from the request header;

[0019] If not, matching the preset first field type and second field type with the task information respectively;

[0020] Using information in the task information that matches the first field type as time zone information;

[0021] The information in the task information that matches the second field type is used as time information.

[0022] Preferably, it also includes:

[0023] Converting the time zone information into a time zone value;

[0024] Establishing a key-value pair based on the time zone information and the time zone value;

[0025] The key-value pair is stored in a preset data structure.

[0026] Preferably, the converting the time information into standard time data corresponding to the standard reference time zone based on the first time zone information includes:

[0027] Determine a character string corresponding to the time information;

[0028] Checking each character in the character string one by one according to a preset time display mode to split the time information into each sub-data;

[0029] Determine whether each of the sub-data meets the preset time specification requirements;

[0030] If yes, construct data of Date type according to each of the sub-data;

[0031] The data of the Date type is converted into the standard time data of the standard reference time zone.

[0032] Preferably, performing a second conversion on the standard task data based on the second time zone information to obtain target task data corresponding to the area where the user is currently located includes:

[0033] Extracting standard time data from the standard task data;

[0034] Acquire a time display mode corresponding to the standard time data, and determine each mode element and each non-mode element from the time display mode;

[0035] Determine each first character and each second character in the standard time data by using each of the pattern elements and each of the non-pattern elements, and determine a target character string according to each of the first characters and the second characters;

[0036] The target character string replaces the standard time data in the standard task data to obtain the target task data corresponding to the area where the user is currently located.

[0037] Preferably, the method of determining each first character and each second character in the standard time data by using each of the pattern elements and each of the non-pattern elements, and determining the target character string according to each of the first characters and the second characters, comprises:

[0038] Matching each of the pattern elements and each of the non-pattern elements with the standard time data;

[0039] Taking each data successfully matched with each pattern element in the standard time data as the first character;

[0040] taking each data successfully matched with each non-pattern element in the standard time data as each second character;

[0041] Calculate each date and time value of each of the first characters based on the second time zone information;

[0042] Each of the date and time values ​​is concatenated with each of the second characters to obtain a target character string.

[0043] In a second aspect, a multi-time zone task processing device includes:

[0044] Task information acquisition module, used to obtain task information sent by users;

[0045] A first time zone information determination module, configured to determine time zone information and time information from the task information, and use the time zone information as first time zone information;

[0046] A standard task data determination module, configured to convert the task information into standard task data according to the first time zone information and time information and in accordance with a standard control time zone, and store the standard task data in a database;

[0047] A response module, configured to extract the standard task data from the database in response to a request instruction for task processing initiated by the user;

[0048] A second time zone information determination module, used to determine the time zone information of the area where the user is currently located as the second time zone information;

[0049] The second conversion module is used to perform a second conversion on the standard task data based on the second time zone information to obtain target task data corresponding to the user's current location, and send the target task data to the user's current client for the user to perform task processing.

[0050] In a third aspect, a multi-time zone task processing device includes a memory and a processor;

[0051] The memory is used to store programs;

[0052] The processor is used to execute the program to implement the various steps of the multi-time zone task processing method as described in the first aspect.

[0053] In a fourth aspect, a storage medium stores a computer program, which, when executed by a processor, implements the various steps of the multi-time zone task processing method as described in the first aspect.

[0054] It can be seen from the above technical scheme that the present application obtains the task information sent by the user; determines the time zone information and time information from the task information, and uses the time zone information as the first time zone information; converts the task information into standard task data according to the first time zone information and time information and in accordance with the standard control time zone, and stores the standard task data in a database; extracts the standard task data from the database in response to a request instruction for task processing initiated by the user; determines the time zone information of the user's current location as the second time zone information; performs a second conversion on the standard task data based on the second time zone information to obtain the target task data corresponding to the user's current location, and sends the target task data to the user's current client for the user to perform task processing. Starting from the task perspective, this solution first obtains the task information sent by the user, which contains the time zone information and time information corresponding to the user, and converts the task information into standard task data and then stores it. When the user needs to process the task, the standard task data is extracted and the standard number of people data is converted again according to the time zone information of the user's current area to match the user's current time zone. In this way, tasks in any time zone can be converted to the standard time zone for storage and converted to the current time zone for processing. There is no need to deploy systems separately in different regions, and they can be uniformly converted to standard mode for storage. When processing, they can be converted again according to user requirements or the user's current area, thereby reducing deployment costs, facilitating user use, making it more international, and conducive to promotion and use. BRIEF DESCRIPTION OF THE DRAWINGS

[0055] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying creative work.

[0056] Figure 1 An optional flow chart of a multi-time zone task processing method provided in an embodiment of the present application;

[0057] Figure 2 A schematic diagram of the structure of a multi-time zone task processing device provided in an embodiment of the present application;

[0058] Figure 3 A schematic diagram of the structure of a multi-time zone task processing device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0059] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0060] The embodiment of the present invention provides a multi-time zone task processing method, which can be applied to various computer terminals or intelligent terminals, and its execution subject can be a processor or server of the computer terminal or intelligent terminal. The method flow chart of the method is as follows: Figure 1 As shown, specifically including:

[0061] S1: Get the task information sent by the user.

[0062] The task information sent by the applicant to the user is a task initiated on a system that needs to be carried out across regions, time zones, and countries. This task may refer to shopping receipts, pending matters, forms, and other files with time information. The file is not limited by size and type, and you only need to pay attention to the time information in it.

[0063] Then the task information refers to the data information of the task, such as its internal data, including time information and time zone information.

[0064] S2: Determine time zone information and time information from the task information, and use the time zone information as first time zone information.

[0065] The task information contains time zone information, time information or other information. This solution is for multi-time zone task processing, so it is necessary to determine the time zone information and time information from the task information. The time zone is the definition of the same time used by regions on the earth. In order to take care of the convenience of use in various regions, the world is divided into 24 time zones, each covering a certain longitude range. Since different systems will be placed in different regions of the earth, when processing multi-time zone tasks, it is necessary to obtain time zone information and time information in order to compare and match and change the corresponding time.

[0066] For the convenience of distinction, the time zone information in the task information is used as the first time zone information.

[0067] The time zone information in this application can be the time zone information of the initiator of the task, that is, the time zone information of the user when initiating the task / sending the task information, or it can be the time zone information related to the task information itself, such as the time zone information indicated in the task information. This embodiment does not limit this.

[0068] Time information refers to the relevant time information of year, month, day, hour, minute and second.

[0069] S3: converting the task information into standard task data according to the first time zone information and the time information and in accordance with the standard control time zone, and storing the standard task data in a database.

[0070] In order to facilitate the unified management of task information in different time zones, this application sets a standard comparison time zone, which can be determined according to the needs of system administrators or users, such as East 8, West 4, etc.

[0071] It can be understood that, at any moment, the East 8th Zone will correspond to one time, and the West 4th Zone will correspond to another time. Then the time between the East 8th Zone and the West 4th Zone can be switched mutually, that is, the time zone information in the task information can be converted into the standard reference time zone, and at the same time, the time information in the task information can be converted into the corresponding time of the standard reference time zone. Therefore, no matter which time zone the task information is in, it will be uniformly converted into standard task data, which can improve management efficiency. In addition, when the task is subsequently retrieved for processing, it can also be quickly converted into the required time zone and time, thereby improving task processing efficiency and catering to the usage habits of users in various regions.

[0072] S4: In response to the request instruction for task processing initiated by the user, extract the standard task data from the database.

[0073] After storage, if the user wants to extract the task for processing, then first respond to the request instruction initiated by the user for task processing. The request instruction contains the name or related data of the task that the user wants to process, so that the database can accurately extract the task based on this. Since the above process has converted the task data into standard task data, the database will extract the standard task data.

[0074] S5: Determine the time zone information of the area where the user is currently located as the second time zone information.

[0075] Since all task information has been converted into standard task data, if the user wants to extract the standard task data, the standard task data needs to be converted again according to the user's current area to meet the user's current needs. Therefore, the time zone information of the user's current area is determined and used as the second time zone information.

[0076] S6: Perform a second conversion on the standard task data based on the second time zone information to obtain target task data corresponding to the area where the user is currently located, and send the target task data to the client where the user is currently located for the user to perform task processing.

[0077] The same method as above for converting into standard task data is that after extraction, the second time zone information of the standard task data case number needs to be converted again to meet the user's current needs, thereby obtaining the target task data. If the time zone of the user's current area is the standard reference time zone, then the standard task data is the target task data.

[0078] It can be seen from the above technical scheme that the present application obtains the task information sent by the user; determines the time zone information and time information from the task information, and uses the time zone information as the first time zone information; converts the task information into standard task data according to the first time zone information and time information and in accordance with the standard control time zone, and stores the standard task data in a database; extracts the standard task data from the database in response to a request instruction for task processing initiated by the user; determines the time zone information of the user's current location as the second time zone information; performs a second conversion on the standard task data based on the second time zone information to obtain the target task data corresponding to the user's current location, and sends the target task data to the user's current client for the user to perform task processing. Starting from the task perspective, this solution first obtains the task information sent by the user, which contains the time zone information and time information corresponding to the user, and converts the task information into standard task data and then stores it. When the user needs to process the task, the standard task data is extracted and the standard number of people data is converted again according to the time zone information of the user's current area to match the user's current time zone. In this way, tasks in any time zone can be converted to the standard time zone for storage and converted to the current time zone for processing. There is no need to deploy systems separately in different regions, and they can be uniformly converted to standard mode for storage. When processing, they can be converted again according to user requirements or the user's current area, thereby reducing deployment costs, facilitating user use, making it more international, and conducive to promotion and use.

[0079] In the method provided in the embodiment of the present invention, the process of converting the task information into standard task data according to the first time zone information and time information and the standard reference time zone is specifically described as follows:

[0080] Based on the first time zone information, converting the time information into standard time data corresponding to the standard reference time zone;

[0081] The task information is first converted according to the standard time data to obtain standard task data.

[0082] Specifically, since the conversion of task information into standard task data needs to be carried out based on the first time zone information and the time information, the process can be divided into two processes to implement it. The first is to convert the time. Based on the first time zone information, the time information is converted into standard time data corresponding to the standard control time zone, and then the task information is converted into the first conversion according to the standard time data. The first conversion process can be regarded as replacing all time-related information in the task information with the standard time data. After the replacement is completed, the standard task data is obtained.

[0083] After conversion, the standard control time zone can also be used as a label to mark the standard task data to indicate the time zone in which it is stored, so as to facilitate subsequent conversion.

[0084] Furthermore, based on the first time zone information, the process of converting the time information into standard time data corresponding to the standard reference time zone may specifically include:

[0085] Determine a character string corresponding to the time information;

[0086] Checking each character in the character string one by one according to a preset time display mode to split the time information into each sub-data;

[0087] Determine whether each of the sub-data meets the preset time specification requirements;

[0088] If yes, construct data of Date type according to each of the sub-data;

[0089] The data of the Date type is converted into the standard time data of the standard reference time zone.

[0090] Specifically, no matter what format or mode the time information is in, it can be converted into a string mode, which can be easily compared with the time display mode. For example, a parser ParsePosition can be created. This parser can be used to track the position in the parsing process. After parsing, the time information is converted into a string mode. The time display mode refers to the format of time display, such as "yyyy-MM-dd", then four y, two M, and two d are all characters, such as 2000-01-08, which means January 8, 2000. The characters in the time information include 2, 0, 1, and 8. Then, by comparing each character in the time information of the string mode with the time display mode, the time of the time information in the time display mode can be determined, and then split according to the level of time, such as year, month, day, hour, minute, second, etc., to obtain each sub-data, each of which is a part of the time information. For example, the time corresponding to "year" is a sub-data, and the time corresponding to month is also a sub-data. In order to ensure the accuracy of time information, it is also necessary to detect and judge each sub-data to determine whether each sub-data meets the preset time specification requirements. For example, for "month", as we all know, there are 12 months in a year, from January to December. If the sub-data corresponding to "month" does not belong to January to December, it means that the sub-data is wrong, and the time information needs to be re-acquired; if each sub-data meets the time specification requirements, it means that the time information is correct, then construct the Date type data according to each sub-data, and then convert the Date type data into the standard time data of the standard reference time zone. Constructing the Date type data is for the convenience of storage and preservation.

[0091] In addition, in the above process, if erroneous sub-data is encountered, the new index of ParsePosition can be checked to determine the error position, and the error position can be judged again to avoid misjudgment and affect the conversion result.

[0092] The above process can be regarded as the process of deserializing time information. Deserialization refers to the process of restoring a byte sequence to an object.

[0093] The following embodiment describes in detail the process of determining the time zone information and the time information from the task information in the present application.

[0094] Determine whether the task information includes a request header;

[0095] If so, construct an interceptor, use the interceptor to intercept the request header, and extract the time zone information from the request header;

[0096] If not, matching the preset first field type and second field type with the task information respectively;

[0097] Using information in the task information that matches the first field type as time zone information;

[0098] The information in the task information that matches the second field type is used as time information.

[0099] The above process may further include:

[0100] Converting the time zone information into a time zone value;

[0101] Establishing a key-value pair based on the time zone information and the time zone value;

[0102] The key-value pair is stored in a preset data structure.

[0103] Specifically, it can be considered that the task information itself does not contain time zone information. When the task information is sent, it will automatically obtain the time zone set by the user client, define a request header named timezone, set the time zone information of the time zone in the request header, and save it in the task information. Then, after receiving the task information sent by the user, build a filter interceptor, use the interceptor to intercept the request header in the task information, and obtain the time zone information from it; if the task information does not contain the request header, extract the time zone information and time information from the task information. The field type of the time zone information is different from the field type of the time information, so the field type can be used to distinguish and match the time zone information and time information.

[0104] In addition to using time zone information for subsequent operations, you can also calculate the time zone value and create a key-value pair based on the time zone information and the time zone value. The key-value pair is a unique identifier used to find and access the corresponding value. The key is usually a string, number, or other hashable data type. It is like a label or index used to quickly locate a specific value. The time zone can be used as the key and the time zone value as the value, and saved in a pre-set data structure. The data structure can be threadlocal, similar to HashMap, to ensure that the data of each thread does not interfere with each other.

[0105] The above embodiment illustrates the process of determining the time zone information and time information from the task information in the present application. The following is a detailed explanation of the process of performing a second conversion on the standard task data based on the second time zone information in the present application to obtain the target task data corresponding to the user's current location.

[0106] Extracting standard time data from the standard task data;

[0107] Acquire a time display mode corresponding to the standard time data, and determine each mode element and each non-mode element from the time display mode;

[0108] Determine each first character and each second character in the standard time data by using each of the pattern elements and each of the non-pattern elements, and determine a target character string according to each of the first characters and the second characters;

[0109] The target character string replaces the standard time data in the standard task data to obtain the target task data corresponding to the area where the user is currently located.

[0110] Specifically, the process is to convert the standard task data into task information corresponding to other time zones, so the process can also be divided into two stages. The first is to convert the time. This process can be regarded as a serialization process, that is, the process of converting an object into a byte sequence, which is the opposite of the above-mentioned deserialization process. Then, the time display mode corresponding to the standard time data can be obtained, and then various mode elements and non-mode elements can be determined from the time display mode. The mode element is a specific element representing the time value, such as 2000, 53, 37, etc. The non-mode element can refer to a symbol connecting different time types, such as "-", " / ", etc. Then, according to these elements, each character can be determined from the standard time data, where the mode element corresponds to the first character and the non-mode element corresponds to the second character, thereby obtaining the target string, and then replacing all the time-related data in the standard task data, that is, the standard time data, with the target string to obtain the target task data corresponding to the user's current location.

[0111] In addition, you can create calendar instances, such as Calendar instances, which can set their time based on the passed in Date type data.

[0112] Furthermore, the specific operation of using each of the pattern elements and each of the non-pattern elements to determine each of the first characters and each of the second characters in the standard time data, and determining the target character string according to each of the first characters and the second characters includes:

[0113] Matching each of the pattern elements and each of the non-pattern elements with the standard time data;

[0114] Taking each data successfully matched with each pattern element in the standard time data as the first character;

[0115] taking each data successfully matched with each non-pattern element in the standard time data as each second character;

[0116] Calculate each date and time value of each of the first characters based on the second time zone information;

[0117] Each of the date and time values ​​is concatenated with each of the second characters to obtain a target character string.

[0118] Specifically, the format method can be used to concatenate the date and time value and each second character into a complete string, that is, the target string.

[0119] In one example, users from multiple countries send task information, so these task information come from different time zones. The present application can set execution subjects for each step, including the front-end (client) page, the back-end server and the database / redis. The user sends the task information on the front-end page, and the back-end server can receive the task information, determine the time zone information and time information from the task information, and use the time zone information as the first time zone information. According to the first time zone information and time information, and in accordance with the standard control time zone, the task information is converted into standard task data, and the standard task data is stored in the database / redis; after a period of time, the user may want to process the task information, or retrieve the task information to view the data, so a request instruction for task processing can be initiated on the front-end page. After receiving the instruction, the back-end server sends a task extraction request to the database / redis. After receiving the task extraction request, the database / redis returns the standard task data to the back-end server. The back-end server determines the time zone information of the user's current location as the second time zone information, and performs a second conversion on the standard task data based on the second time zone information to obtain the target task data corresponding to the user's current location, and then sends the target task data to the front-end page for the user to process the task.

[0120] and Figure 1 Corresponding to the method described above, the embodiment of the present invention further provides a multi-time zone task processing device for Figure 1 In the specific implementation of the method, the multi-time zone task processing device provided by the embodiment of the present invention can be combined with a computer terminal or various mobile devices. Figure 2 , introduces the multi-time zone task processing device, such as Figure 2 As shown, the device may include:

[0121] The task information acquisition module 10 is used to acquire the task information sent by the user;

[0122] A first time zone information determination module 20, configured to determine time zone information and time information from the task information, and use the time zone information as first time zone information;

[0123] A standard task data determination module 30 is used to convert the task information into standard task data according to the first time zone information and time information and in accordance with a standard control time zone, and store the standard task data in a database;

[0124] A response module 40, configured to extract the standard task data from the database in response to a request instruction for task processing initiated by the user;

[0125] A second time zone information determination module 50, configured to determine the time zone information of the area where the user is currently located as the second time zone information;

[0126] The second conversion module 60 is used to perform a second conversion on the standard task data based on the second time zone information to obtain target task data corresponding to the user's current location, and send the target task data to the user's current client for the user to perform task processing.

[0127] It can be seen from the above technical scheme that the present application obtains the task information sent by the user; determines the time zone information and time information from the task information, and uses the time zone information as the first time zone information; converts the task information into standard task data according to the first time zone information and time information and in accordance with the standard control time zone, and stores the standard task data in a database; extracts the standard task data from the database in response to a request instruction for task processing initiated by the user; determines the time zone information of the user's current location as the second time zone information; performs a second conversion on the standard task data based on the second time zone information to obtain the target task data corresponding to the user's current location, and sends the target task data to the user's current client for the user to perform task processing. Starting from the task perspective, this solution first obtains the task information sent by the user, which contains the time zone information and time information corresponding to the user, and converts the task information into standard task data and then stores it. When the user needs to process the task, the standard task data is extracted and the standard number of people data is converted again according to the time zone information of the user's current area to match the user's current time zone. In this way, tasks in any time zone can be converted to the standard time zone for storage and converted to the current time zone for processing. There is no need to deploy systems separately in different regions, and they can be uniformly converted to standard mode for storage. When processing, they can be converted again according to user requirements or the user's current area, thereby reducing deployment costs, facilitating user use, making it more international, and conducive to promotion and use.

[0128] Furthermore, the embodiment of the present application provides a multi-time zone task processing device. Optionally, Figure 3The hardware structure diagram of the multi-time zone task processing device is shown in FIG. Figure 3 The hardware structure of the multi-time zone task processing device may include: at least one processor 01, at least one communication interface 02, at least one memory 03 and at least one communication bus 04.

[0129] In the embodiment of the present application, the number of the processor 01 , the communication interface 02 , the memory 03 , and the communication bus 04 is at least one, and the processor 01 , the communication interface 02 , and the memory 03 communicate with each other through the communication bus 04 .

[0130] The processor 01 may be a central processing unit (CPU), or an application specific integrated circuit (ASIC), or one or more integrated circuits configured to implement the embodiments of the present invention.

[0131] The memory 03 may include a high-speed RAM memory, and may also include a non-volatile memory (non-volatile memory), etc., such as at least one disk memory.

[0132] The memory stores a program, and the processor can call the program stored in the memory, and the program is used to execute the following multi-time zone task processing method, including:

[0133] Get the task information sent by the user;

[0134] Determine time zone information and time information from the task information, and use the time zone information as first time zone information;

[0135] According to the first time zone information and time information, and in accordance with the standard control time zone, the task information is converted into standard task data, and the standard task data is stored in a database;

[0136] Responding to a request instruction for task processing initiated by the user, extracting the standard task data from the database;

[0137] Determine the time zone information of the area where the user is currently located as the second time zone information;

[0138] The standard task data is subjected to a second conversion based on the second time zone information to obtain target task data corresponding to the area where the user is currently located, and the target task data is sent to the client where the user is currently located for the user to perform task processing.

[0139] Optionally, the detailed functions and extended functions of the program may refer to the description of the multi-time zone task processing method in the method embodiment.

[0140] The embodiment of the present application further provides a storage medium, which may store a program suitable for execution by a processor, and when the program is executed, controls the device where the storage medium is located to execute the following multi-time zone task processing method, including:

[0141] Get the task information sent by the user;

[0142] Determine time zone information and time information from the task information, and use the time zone information as first time zone information;

[0143] According to the first time zone information and time information, and in accordance with the standard control time zone, the task information is converted into standard task data, and the standard task data is stored in a database;

[0144] Responding to a request instruction for task processing initiated by the user, extracting the standard task data from the database;

[0145] Determine the time zone information of the area where the user is currently located as the second time zone information;

[0146] The standard task data is subjected to a second conversion based on the second time zone information to obtain target task data corresponding to the area where the user is currently located, and the target task data is sent to the client where the user is currently located for the user to perform task processing.

[0147] Specifically, the storage medium may be a computer-readable storage medium, and the computer-readable storage medium may be an electronic memory such as a flash memory, an EEPROM (Electrically Erasable Programmable Read-Only Memory), an EPROM, a hard disk or a ROM.

[0148] Optionally, the detailed functions and extended functions of the program may refer to the description of the multi-time zone task processing method in the method embodiment.

[0149] In addition, the functional modules in the various embodiments of the present disclosure can be integrated together to form an independent part, or each module can exist separately, or two or more modules can be integrated to form an independent part. If the function is implemented in the form of a software functional module 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 disclosure is essentially or the part that contributes to the prior art or the part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium and includes a number of instructions for a computer device (which can be a personal computer, a live broadcast device, or a network device, etc.) to perform all or part of the steps of the methods of the various embodiments of the present disclosure.

[0150] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.

[0151] The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referenced to each other.

[0152] The above description of the disclosed embodiments enables those skilled in the art to implement or use the present application. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present application. Therefore, the present application will not be limited to the embodiments shown herein, but will conform to the widest scope consistent with the principles and novel features disclosed herein.

Claims

1. A multi-time zone task processing method, characterized in that: include: Get the task information sent by the user; Determine time zone information and time information from the task information, and use the time zone information as first time zone information; According to the first time zone information and time information, and in accordance with the standard control time zone, the task information is converted into standard task data, and the standard task data is stored in a database; Responding to a request instruction for task processing initiated by the user, extracting the standard task data from the database; Determine the time zone information of the area where the user is currently located as the second time zone information; The standard task data is subjected to a second conversion based on the second time zone information to obtain target task data corresponding to the area where the user is currently located, and the target task data is sent to the client where the user is currently located for the user to perform task processing.

2. The method according to claim 1, characterized in that The converting the task information into standard task data according to the first time zone information and the time information and the standard control time zone includes: Based on the first time zone information, converting the time information into standard time data corresponding to the standard reference time zone; The task information is first converted according to the standard time data to obtain standard task data.

3. The method according to claim 1, characterized in that: The determining the time zone information and the time information from the task information includes: Determine whether the task information includes a request header; If so, construct an interceptor, use the interceptor to intercept the request header, and extract the time zone information from the request header; If not, matching the preset first field type and second field type with the task information respectively; Using information in the task information that matches the first field type as time zone information; The information in the task information that matches the second field type is used as time information.

4. The method according to claim 3, characterized in that: Also includes: Converting the time zone information into a time zone value; Establishing a key-value pair based on the time zone information and the time zone value; The key-value pair is stored in a preset data structure.

5. The method according to claim 2, characterized in that: The converting the time information into standard time data corresponding to the standard reference time zone based on the first time zone information includes: Determine a character string corresponding to the time information; Checking each character in the character string one by one according to a preset time display mode to split the time information into each sub-data; Determine whether each of the sub-data meets the preset time specification requirements; If yes, construct data of Date type according to each of the sub-data; The data of the Date type is converted into the standard time data of the standard reference time zone.

6. The method according to claim 1, characterized in that The performing a second conversion on the standard task data based on the second time zone information to obtain target task data corresponding to the area where the user is currently located includes: Extracting standard time data from the standard task data; Acquire a time display mode corresponding to the standard time data, and determine each mode element and each non-mode element from the time display mode; Determine each first character and each second character in the standard time data by using each of the pattern elements and each of the non-pattern elements, and determine a target character string according to each of the first characters and the second characters; The target character string replaces the standard time data in the standard task data to obtain the target task data corresponding to the area where the user is currently located.

7. The method according to claim 6, characterized in that The method of determining each first character and each second character in the standard time data by using each of the pattern elements and each of the non-pattern elements, and determining a target character string according to each of the first characters and the second characters, comprises: Matching each of the pattern elements and each of the non-pattern elements with the standard time data; Taking each data successfully matched with each pattern element in the standard time data as the first character; taking each data successfully matched with each non-pattern element in the standard time data as each second character; Calculate each date and time value of each of the first characters based on the second time zone information; Each of the date and time values ​​is concatenated with each of the second characters to obtain a target character string.

8. A multi-time zone task processing device, characterized in that: include: Task information acquisition module, used to obtain task information sent by users; A first time zone information determination module, configured to determine time zone information and time information from the task information, and use the time zone information as first time zone information; A standard task data determination module, configured to convert the task information into standard task data according to the first time zone information and time information and in accordance with a standard control time zone, and store the standard task data into a database; A response module, configured to extract the standard task data from the database in response to a request instruction for task processing initiated by the user; A second time zone information determination module, used to determine the time zone information of the area where the user is currently located as the second time zone information; The second conversion module is used to perform a second conversion on the standard task data based on the second time zone information to obtain target task data corresponding to the user's current location, and send the target task data to the user's current client for the user to perform task processing.

9. A multi-time zone task processing device, characterized in that: including memory and processor; The memory is used to store programs; The processor is used to execute the program to implement the various steps of the multi-time zone task processing method as described in any one of claims 1-7.

10. A storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, each step of the multi-time zone task processing method as described in any one of claims 1 to 7 is implemented.

Citation Information

Cited By

  • Multi-time-zone task scheduling method and system

    CN121300957A