Strftime is a common PHP in the date-time acquisition function, will be stored in the database of the number converted to a function of time, here for you to introduce the use of strftime function and parameters, the need for friends can refer to
Definitions and usageThe strftime () function formats the local time/date according to the locale setting.
GrammarStrftime (format,timestamp) parameter descriptionFormat is optional. Specify how the results are returned.Timestamp optional.Tips and
strftime and Strptime use
Organized from Linux programmingBoth functions are format control functions of time and date, and appear to be the opposite in function. Strftime formats a TM structure as a string, strptime formats a string as a TM
Strftime is a computer function in which the strftime () function formats the local time/date according to locale, and the function formats the time, or formats a time string.
Self-understanding can be used in C language based language, such as C C
Explain how to use strftime () in Python
This article describes how to use the strftime () method in Python. It is the basic knowledge of getting started with Python. For more information, see
The strftime () method is converted into a tuples or
Strftime
The strftime () function Format the time.
We can use the strftime () function to format the time as we want. Its prototype is as follows:
Size_t strftime (
Char * strdest,
Size_t maxsize,
Const char * format,
Const struct TM *
I made a DLL and want to call the ctime class. The ctime class cannot be used in the MFC dynamic link library because it uses the strftime function not supported by the Windows dynamic link library. You have to solve the problem by using the method
The strftime () function formats local time/date according to locale, functions function to format time, or to format a time string.size_t strftime (Char *strdest,size_t MaxSize,const Char *format,Const struct TM *timeptr);Parameter description: We
Use the function date () to implement the displayed in the format: year-month-day hours: minutes: secRelated Time parameters:A-"AM" or "PM"A-"AM" or "PM"D-A few days, two digits, if less than two digits before the 0; such as: "01" to "31"D-Days of
When I used to solve this problem with ASP is quite simple, the ASP has the corresponding function DateDiff can give two days period interval How many months, how many days and how many seconds. When I searched through the PHP manual I found that
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.