It can be seen from the message interface guide of the WeChat public platform that each type of message definition contains the CreateTime parameter, which represents the creation time of the message, as shown in the following figure: The above figure is 4.1 in the message interface guide - Definition of text message. Pay attention to the description of CreateTime: message creation time (integer). The key point is that this is an integer time, not the standard format time similar to "yyyy-MM-dd HH:mm:ss" that we are all familiar with. This article mainly wants to introduce the meaning of the integer message creation time CreateTime defined in the WeChat message interface, and how to convert CreateTime into a time format we are familiar with. The meaning of the integer CreateTime is the message creation time CreateTime defined in the message interface. It represents the number of seconds between 0:00:00 on January 1, 1970 and the time when the message is created. Note that it is the number of seconds of the interval, not the number of milliseconds! Conversion of integer CreateTime In Java, we often obtain long type time through the following two methods. Let’s start with the code: /** &nbs
1. WeChat public account development--Analysis of CreateTime
Introduction: It can be seen from the message interface guide of the WeChat public platform that each type of message definition contains the CreateTime parameter, which represents the creation time of the message, as shown in the following figure: The above figure is the message interface guide Section 4.1 - Definition of text message. Pay attention to the description of CreateTime: message creation time (integer). The key point is that this is an integer time, not the standard format time similar to yyyy-MM-dd HH:mm:ss that we are all familiar with. This article mainly wants to introduce the integer message creation defined in the WeChat message interface
2. Sharing an example tutorial on developing cash red envelopes for WeChat public accounts
Introduction: Welcome to leave a message and forward a series of articles on WeChat rapid development: Click here. The previous articles introduced WeChat payment. Official account payment, WeChat scan code payment, card payment, WeChat payment This article will talk about the payment tool cash red envelope preparation work in WeChat merchants [Official Document] 1. Activate Cash Red Envelope Permissions Before using cash red envelopes, please go to Activate Cash Red Envelopes Function. Operation path: [Log in to the WeChat Payment Merchant Platform——>Product Center——>Cash Red Envelope——>Activate]. 2. Download the API certificate. When the merchant calls the WeChat red envelope interface, the server will verify...
3. Share the WeChat public account development custom menu example tutorial
Introduction: Welcome to leave messages, forward, and reward the project source code reference address. Click me. I welcome Start. The previous articles have been After talking about how to import the project, how to start the configuration project, how to become a developer, and how to interact with source code analysis messages (if the first four items are not very clear, you can read here to quickly develop WeChat public accounts. This article will talk about how to implement self- There are two ways to define menus to implement custom menus: 1. Editing mode 2. Development mode. Editing mode is very simple and I won’t go into details...
4. Share with WeChat public Example tutorial on credit card payment development
# Introduction: Welcome to leave a message and forward the WeChat speed development series of articles: click The previous two articles here introduced WeChat public account payment and WeChat scan code payment. This article specifically talks about WeChat swipe card payment. Swipe card payment official document scenario introduction. Step 1: The user selects swipe card payment and opens WeChat, enter "Me"> "Wallet" > "Swipe Card" barcode interface Step 2: The cashier operates in the merchant system to generate a payment order, and the user confirms the payment amount. Step 3: The merchant's cashier scans the user's barcode/QR code with a scanning device, and the merchant's cashier system submits Payment Step 4: After WeChat payment...
5. Example tutorial for sharing WeChat public account development template messages
Introduction: Welcome to leave a message and forward WeChat rapid development series of articles: Click here I have a slight cold recently, and the update progress of the article has been delayed. I hope this series of articles will be helpful to your research on WeChat public development. The previous articles introduced WeChat payment. Official account payment, WeChat scan code payment, card payment, WeChat payment. This article will talk about business notifications in WeChat. How to check whether WeChat template messages have permission. In communication groups, people always ask about personal subscription number, certified subscription number, Whether the service number and authenticated service number have permission to use an interface. In fact, this problem is very simple, in...
6. nodejs develops WeChat payment function
Introduction: This article mainly introduces the development of nodejs WeChat public account payment in detail. It has certain reference value. Interested friends can refer to it
7. Debugging environment deployment for WeChat development
Introduction : WeChat public accounts have been popular for a while. The author came into contact with the development of WeChat public accounts relatively early. I have been doing it for about a year and a half. From the beginning, I started looking for demos everywhere on the Internet to now developing some public accounts. There are countless tutorials on WeChat development in the garden, and I am ready to join in the fun. The first is to sort out the development experience during this period, and the second is to hope that it can help friends who want to develop WeChat. I hope that the great gods will take it easy when they complain. The author is just a loser programmer with less than three years of work experience. In terms of development experience, I am not on the same level as the masters in the garden, so I would like to ask the masters for their guidance.
8. .NET WeChat public account development (5.0 WeChat payment) detailed example
Introduction: Before starting to do this function, the first thing we have to do is to think about how to do this WeChat payment, where to start, where to start, the official sdk instructions and so on , is there any official demo, and whether the information the boss gave me is complete, and whether the interfaces to be applied for are available.
9. WeChat public account development: convert long connections into short links through accesstoken
Introduction: In the process of developing WeChat public accounts, there are often some very long links. If a QR code is generated at this time, the recognition will be slow during the scanning process. If there are Entering the database will cause the field length of the database to be set very long, so it is increasingly important to convert long links into short links.
10. Introduction to how to perform time conversion code examples in WeChat development
Introduction: In the development of WeChat public accounts, the time parameters in almost all interfaces that interact with the WeChat server are of integer type. To display the time correctly, conversion must be performed.
[Related Q&A recommendations]:
#php - WeChat alarm, 5 seconds timeout
php - WeChat public account development xml: Xml fields error, please check your response xml!
mysql - php WeChat public account development small questions, please ask experts to answer
The above is the detailed content of Introductory tutorial for public account development: 10 recommended introductory tutorials for zero-based public account development. For more information, please follow other related articles on the PHP Chinese website!