CN107230148A - A kind of date determination methods for transaction funds settlement process - Google Patents
A kind of date determination methods for transaction funds settlement process Download PDFInfo
- Publication number
- CN107230148A CN107230148A CN201710305527.9A CN201710305527A CN107230148A CN 107230148 A CN107230148 A CN 107230148A CN 201710305527 A CN201710305527 A CN 201710305527A CN 107230148 A CN107230148 A CN 107230148A
- Authority
- CN
- China
- Prior art keywords
- date
- determination methods
- shell scripts
- current date
- date determination
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q40/00—Finance; Insurance; Tax strategies; Processing of corporate or income taxes
- G06Q40/04—Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange
Landscapes
- Business, Economics & Management (AREA)
- Accounting & Taxation (AREA)
- Finance (AREA)
- Engineering & Computer Science (AREA)
- Development Economics (AREA)
- Economics (AREA)
- Marketing (AREA)
- Strategic Management (AREA)
- Technology Law (AREA)
- Physics & Mathematics (AREA)
- General Business, Economics & Management (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)
Abstract
The invention discloses a kind of date determination methods for transaction funds settlement process, it judges current date using shell scripts.The scheme that this programme is provided in code without being judged, it is only necessary to correspondence shell scripts are write in Linux system and can be achieved quickly to judge current date;Can more easily be applied to needs to judge among all several business processings.
Description
Technical field
Technology is settled accounts the present invention relates to transaction funds, and in particular to the judgment technology on date in transaction funds clearing technology.
Background technology
, it is necessary to whether be that working day or nonworkdays enter for current date during existing transaction funds settlement process
Row judges, to adjust corresponding business processing.
In the prior art, it is that the corresponding nonworkdays date is saved in database, is obtained according to other programming languages
The value of the inoperative date value in database and current date is taken to be compared to judge.
Such means are needed by substantial amounts of date storage into database, if the time for being related to N would is that it is very big
Workload, so there is larger defect, poor practicability in this scheme.
As can be seen here there is provided one kind efficiently, the easy date for transaction funds settlement process judges that scheme is ability
The problem of domain urgent need to resolve.
The content of the invention
For the problems of nonworkdays judgment technology in existing transaction funds clearing technology, it is necessary to which one kind can be fast
The fast accurate scheme for determining nonworkdays.
Judge therefore, the technical problems to be solved by the invention are to provide a kind of date for transaction funds settlement process
Method, for the quick judgement on nonworkdays in transaction funds settlement process (such as Saturday, Sunday).
In order to solve the above-mentioned technical problem, provided by the present invention for the date determination methods of transaction funds settlement process,
Specifically used shell scripts judge current date.
In this programme, using the corresponding decision logic of shell script edits in Linux system, and by using
Crontab timers regularly call shell scripts daily, and current date is judged according to script.
In this programme, the shell scripts form working day decision logic according to Cai Le formula.
In this programme, the shell scripts by getting Date on the value sent, for what is included in current date
The corresponding parameter information of date acquisition of information, then by working day decision logic calculate current date whether be working day or
Nonworkdays.
In this programme, the character string got Date first according to its free functional based method in Shell scripts, and
On the date parameter sent whether consistent be compared, be then unanimously current date, on the contrary then non-present date.
The scheme that this programme is provided in code without being judged, it is only necessary to correspondence shell is write in Linux system
Script is that can be achieved quickly to judge current date;Can more easily be applied to needs to judge among all several business processings.
Brief description of the drawings
The present invention is further illustrated below in conjunction with the drawings and specific embodiments.
Fig. 1 is the flow chart that present example carries out date judgement based on this judgement scheme.
Embodiment
In order that the technical means, the inventive features, the objects and the advantages of the present invention are easy to understand, tie below
Conjunction is specifically illustrating, and the present invention is expanded on further.
This example illustrates what the present invention was provided exemplified by judging whether current date be Saturday, Sunday
Date judges scheme.
For conventional transaction funds settlement process business, typically all work daily settlement, and Saturday, Sunday do not settle accounts;Cause
This this be accomplished by transaction funds settlement processing system and can fast and accurately judge current date, quickly to adjust business processing
Function, i.e., perform the business function of transaction funds settlement process on weekdays, in nonworkdays (i.e. Saturday, Sunday) adjustment
To perform the business function for not handling transaction funds clearing.
Therefore existing transaction funds settlement processing system is accomplished by fast, accurately judging whether current date is work
Make day or nonworkdays (i.e. Saturday, Sunday), so as to which the function treatment of working day and two-day weekend are made a distinction.
Whether a kind of this example offer date judges scheme, for fast, accurately judging current date as Saturday, star
Phase day, so that whether current date is judged as working day or nonworkdays (i.e. Saturday, Sunday), so that Timing Processing is corresponding
Service logic.
This date judges that scheme specifically uses corresponding shell scripts to judge current date for what day or whether be star
Phase six, Sunday, to carry out handling specific transactions function.
Specifically, this example in Linux system use the corresponding decision logic of shell script edits, then by using
Crontab timers regularly call execution shell scripts to judge current date daily, and whether current date is judged according to script
For Saturday, Sunday, to distinguish the corresponding business function of processing (such as whether performing account settlement business).
Here Shell is write based on C language and formed, and Linux bridge is used as user.Shell is both a kind of life
Language is made, is a kind of programming language again.Thus the Shell scripts (shell script) constituted are that one kind is that Shell is compiled
The shell script write, all kinds of orders are placed in advance in corresponding file, so as to the program text subsequently disposably performed
Part, mainly facilitates keeper to be configured or management.
It is encoded with can interpolate that whether the date is that date carries out logic judgment module in this Shell scripts.Thus, should
Shell scripts are directed to the design parameter value information required for the date parameter above sent is obtained, and pass through what is write in shell scripts
Logic judgment module comes whether the specific value for judging current date is working day or nonworkdays date, to distinguish processing correspondence
Business function (such as whether perform account settlement business), such as if working day then carries out correspondence settlement process, if inoperative
Day is then without settlement process.
Specifically, the shell scripts are the specific works date logic judgments realized according to Cai Le formula, and formed accordingly
Corresponding logic judgment module.The value sent on by getting Date, is obtained for the date information included in current date
Take corresponding parameter information, finally calculate current date whether be Saturday, Sunday result.
Cai Le (Zeller) formula, is the formula in a calculating week, can by equation below for the given date
Extrapolate is what day:
W=[C/4] -2C+y+ [y/4]+[26 (m+1)/10]+d-1;
Wherein, W is the number of weeks on required date, if the number tried to achieve is more than 7, can be directly to 7 remainders, for Sunday just
It is output as 0.;If the number tried to achieve is less than 0,7 multiple can be added, untill result is more than zero less than 7.C is year of grace
The front two numeral of part, y is the rear two digits in known time in Christian era, and m is a month number, and d is number of days, just includes [] and represents only to intercept
The integer part of the number.
If if January or 2 months, should be regarded as 13 months or 14 months of the previous year in required month, thus m takes in formula
Value scope is 3-14.
Corresponding date decision logic is realized based on above-mentioned Cai Le formula in this Shell scripts, if drawn current
The result W=0 or W=6 on date are then Sunday or Saturday, and Saturday, Sunday are judged on this basis.
Therefore, the date that this example is provided judges scheme, and it in code without being judged, it is only necessary to
Correspondence shell scripts are write in Linux system;Furthermore, Saturday, Sunday are determined whether using shell scripts, can be with
The more convenient judgement in crontab timed tasks performs correspondence service logic, it is to avoid what is repeatedly judged in code excessively disappears
Consumption.
This programme, which can be more easily applied to, to be needed to judge among all several business processings.Referring to Fig. 1, it show
Judge that scheme carries out the transaction funds account settlement business processing procedure of current date judgement based on this date.
First, by fixing the date, example:The date parameter of input 20080101,
Then, judge that shell scripts judge whether the inputting date is star based on writing current date in Linux system
Phase six or Sunday;
Finally, according to judging that structure is traded capital settlement logical process.
The date is finally obtained for Tuesday, is working day, is not Saturday or Sunday, is then merchandised and provided using normal process
Golden account settlement business logic, example:Corresponding third party's clearing are not settled accounts on Saturday or Sunday.
General principle, principal character and the advantages of the present invention of the present invention has been shown and described above.The technology of the industry
Personnel are it should be appreciated that the present invention is not limited to the above embodiments, and the simply explanation described in above-described embodiment and specification is originally
The principle of invention, without departing from the spirit and scope of the present invention, various changes and modifications of the present invention are possible, these changes
Change and improvement all fall within the protetion scope of the claimed invention.The claimed scope of the invention by appended claims and its
Equivalent thereof.
Claims (5)
1. a kind of date determination methods for transaction funds settlement process, it is characterised in that the date determination methods are used
Shell scripts judge current date.
2. date determination methods according to claim 1, it is characterised in that compiled in Linux system using shell scripts
Corresponding decision logic is write, and shell scripts are regularly called by using crontab timers daily, is judged according to script
Current date.
3. date determination methods according to claim 2, it is characterised in that the shell scripts are according to Cai Le formula shapes
Into working day decision logic.
4. date determination methods according to claim 3, it is characterised in that the shell scripts work as the day before yesterday by obtaining
The value sent on phase, judges for the corresponding parameter information of date acquisition of information included in current date, then by working day
Logical calculated goes out whether current date is working day or nonworkdays.
5. date determination methods according to claim 3, it is characterised in that free according to its first in Shell scripts
The character string that functional based method gets Date, the date parameter sent be compared it is whether consistent, unanimously then to work as the day before yesterday
Phase, on the contrary then non-present date.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710305527.9A CN107230148A (en) | 2017-05-03 | 2017-05-03 | A kind of date determination methods for transaction funds settlement process |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710305527.9A CN107230148A (en) | 2017-05-03 | 2017-05-03 | A kind of date determination methods for transaction funds settlement process |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107230148A true CN107230148A (en) | 2017-10-03 |
Family
ID=59933239
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710305527.9A Pending CN107230148A (en) | 2017-05-03 | 2017-05-03 | A kind of date determination methods for transaction funds settlement process |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107230148A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109741174A (en) * | 2018-12-27 | 2019-05-10 | 深圳前海微众银行股份有限公司 | Inter-agency settle accounts calculation method, apparatus, equipment and computer readable storage medium |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101847291A (en) * | 2009-03-23 | 2010-09-29 | 冲电气工业株式会社 | Automatic dealing method and device |
CN102222309A (en) * | 2011-05-04 | 2011-10-19 | 宇龙计算机通信科技(深圳)有限公司 | Security information prompting method and mobile terminal |
CN106408388A (en) * | 2016-09-25 | 2017-02-15 | 安徽辛普信息科技有限公司 | E-commerce system configuration method |
CN106569920A (en) * | 2016-11-09 | 2017-04-19 | 腾讯科技(深圳)有限公司 | Database backup method and device |
-
2017
- 2017-05-03 CN CN201710305527.9A patent/CN107230148A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101847291A (en) * | 2009-03-23 | 2010-09-29 | 冲电气工业株式会社 | Automatic dealing method and device |
CN102222309A (en) * | 2011-05-04 | 2011-10-19 | 宇龙计算机通信科技(深圳)有限公司 | Security information prompting method and mobile terminal |
CN106408388A (en) * | 2016-09-25 | 2017-02-15 | 安徽辛普信息科技有限公司 | E-commerce system configuration method |
CN106569920A (en) * | 2016-11-09 | 2017-04-19 | 腾讯科技(深圳)有限公司 | Database backup method and device |
Non-Patent Citations (1)
Title |
---|
KING9413: "《linux通过shell判断日期是星期几及生成日期》", 《HTTP://WWW.360DOC.COM/CONTENT/13/0228/18/2633_268481216.SHTML》 * |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109741174A (en) * | 2018-12-27 | 2019-05-10 | 深圳前海微众银行股份有限公司 | Inter-agency settle accounts calculation method, apparatus, equipment and computer readable storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109598604B (en) | Day-to-day cutting judgment method and device | |
CN109544073B (en) | Method, device and equipment for managing customs clearance and storage medium | |
US20150081491A1 (en) | Intraday cash flow optimization | |
CN108520466B (en) | Method for automatically matching commission fees and commission policies of insurance agency industry | |
CN107230148A (en) | A kind of date determination methods for transaction funds settlement process | |
CN109934590A (en) | A kind of data processing method based on block chain, device, electronic equipment and medium | |
US11263049B2 (en) | System for pattern recognition to customized resource usage | |
CN108681959A (en) | A kind of bookkeeping methods and server | |
CN114564477B (en) | Data storage method and device, electronic equipment and storage medium | |
US11386408B2 (en) | System and method for nearest neighbor-based bank account number validation | |
CN112241889B (en) | Account detail restoration method, device, equipment and storage medium | |
CN113344580A (en) | Anti-money laundering list screening method, device and system | |
Battauz et al. | American options with acceleration clauses | |
CN112990922A (en) | Batch payment method, device, equipment and storage medium | |
CN112163826A (en) | Method, system, computer equipment and storage medium for processing settlement pipeline | |
JP3306806B2 (en) | Retirement benefit obligation management device | |
CN110888917A (en) | Batch running task execution method, device, server and storage medium | |
CN109615451A (en) | A kind of information push, operating method, device, equipment and medium | |
CN113220599B (en) | Method, device, equipment and storage medium for generating test case set | |
CN118898511A (en) | Processing method and device for bond position data | |
JP6835179B1 (en) | Pattern estimation device, pattern estimation method and program | |
Mukhija et al. | Estimating software maintenance | |
CN117172909A (en) | Reminding file processing method and device, storage medium and electronic equipment | |
JP2001243397A (en) | Information processor | |
JPH09128457A (en) | Interest calculation service system for account transferred to sleeping account and its method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20171003 |