Local Test Cases:
# there can be no spaces on either side of the equal sign, before the error has been out here
yesterday= ' date-d last-day +%y-%m-%d '
echo $yesterday
curday= ' Date +%y-%m-%d '
echo $curday
echo "Now time: ' Date ' +%y%m%d%T '"
Date () is a commonly used date-time function, let me summarize the date () function of the various forms of usage, there is a need to learn the friend can refer to.Formatted dateThe first parameter of the date () function specifies how the
Formatted dateThe first parameter of the date () function specifies how the date/time is formatted. It uses letters to represent the format of dates and times. Here is a list of some availableThe letters:D-Day of the month (01-31)• M-Current month,
Date () is a commonly used date-time function, let me summarize the date () function of the various forms of usage, there is a need to learn the friend can refer to.
Formatted dateThe first parameter of the date () function specifies how the date/
Format dateThe first parameter of the date () function specifies how to format the date/time. It uses letters to indicate the date and time formats. Some availableLetter:• Day in d-month (01-31)• M-current month, in numbers (01-12)• Y-current year
Introduction to the use of date functions for PHP series learning. Introducing PHP is an amazing language. It is powerful enough (the core language of the largest blog (wordpress) and extensive enough (running on facebook, the largest social
Introduction
PHP is a very surprising language. It is powerful enough (the core language of the largest blog (WordPress) and extensive enough (running on Facebook, the largest social networking website). It is simple enough (as the preferred
PHP notes: Introduction to the use of date functions. Introducing PHP is an amazing language. It is powerful enough (the core language of the largest blog (wordpress) and extensive enough (running on facebook, the largest social networking website ).
Introduced
PHP is a very amazing language. It's strong enough (the core language of the biggest blog (WordPress)), it's wide enough (running on Facebook, the biggest social networking site), and it's simple enough (as a beginner's preferred starter
PHP has a wealth of library resources, which makes it easy for developers to process some businesses. Since we have the most contact with dates in the project, we will start with date functions today.
PHP is a very surprising language. It is
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.