I haven't had a clue after a full day, and I have a strong mathematical logic to help me solve the problem.

Source: Internet
Author: User
I haven't had a clue after a full day, so I can help me with strong mathematical logic. $ Num = 1326784488; // initial time $ time = time (); // Current time $ multiple = 10; & nbsp; $ total = ($ time-$ num) * 10 + & quot; explain the full amount of data obtained in different time periods has not been completed for two days. it is a strong mathematical logic to help me.
$ Num = 1326784488; // initial time
$ Time = time (); // current time
$ Multiple = 10;
$ Total = ($ time-$ num) * 10 + "workers the number of workers obtained at different times ";
Users who want to get different numbers (and are regular) at different times (days, hours, and minutes) and do not allow database operations ..
Total number of today> greater than the total number of yesterday> Total number of days> Total number of hours> Total number of minutes.


------ Solution --------------------
What is the requirement environment? Can't you simply use a timestamp to meet your requirements?
------ Solution --------------------
Unique Value

Cannot conflict with the requirements, and do not operate the database?
------ Solution --------------------
Cannot conflict, hoho ~~~
------ Solution --------------------
For a single CPU, the value obtained by microtime can be unique. The problem is that it meets your requirements .. You didn't describe the data format either?

Or you can use the filelock or memory shmop to control a program and generate only one value at a time.
------ Solution --------------------
I need to describe it in detail, but it is still unclear,
What kind of rule do you need? you didn't understand the last line >>>
------ Solution --------------------
I don't know what you want to achieve
However
$ Ceshi2 = 1326694849;
$ Csfen = substr ($ ceshi2, 6, 2); // minute
$ Csmiao = substr ($ ceshi2, 8, 2); // second

Is your time in a hundred hexadecimal format?
At least not easy to check
------ Solution --------------------
Discussion

I need to describe it in detail, but it is still unclear,
What kind of rule do you need? you didn't understand the last line >>>

------ Solution --------------------
LZ is supposed to simulate a piece of data for the boss.

Last hour is XX
Last day is XXXXX
The last month is XXXXXXXXXXX.

Numbers are getting bigger and more regular

Well, in fact, we just need to use the base + random number method...
------ Solution --------------------
You are so strange!
Have you encountered a problem or have I encountered a problem?

------ Solution --------------------
Who has proposed a change requirement and still requires a rule, but cannot check the number of changes?

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.