This article is an introduction to CreateTime developed by WeChat. The following is the code. Let me share with you
Createtime in WeChat is expressed as the number of seconds between 0:00:00 on January 1, 1970 and the time when the message was created. There are two ways to obtain Createtime:
long createtime = System.currentTimeMillis(); long createtime = new java.util.Date().getTime();
The way to convert createtime to the current time is:
long msgCreatetime = Long.pareseLong(createtime)*1000L; DateFormate format= new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); String nowTime = format.format(new Date(msgCreatetime));
[Related recommendations]
1. WeChat public account platform source code download
2. WeChat public account development--analysis of CreateTime
3. WeChat payment for WeChat development
The above is the detailed content of Introduction to WeChat developmentCreateTime. For more information, please follow other related articles on the PHP Chinese website!

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

WebStorm Mac version
Useful JavaScript development tools

MinGW - Minimalist GNU for Windows
This project is in the process of being migrated to osdn.net/projects/mingw, you can continue to follow us there. MinGW: A native Windows port of the GNU Compiler Collection (GCC), freely distributable import libraries and header files for building native Windows applications; includes extensions to the MSVC runtime to support C99 functionality. All MinGW software can run on 64-bit Windows platforms.

ZendStudio 13.5.1 Mac
Powerful PHP integrated development environment

Zend Studio 13.0.1
Powerful PHP integrated development environment

EditPlus Chinese cracked version
Small size, syntax highlighting, does not support code prompt function
