ArticleDirectory
UNIX Origin
UNIX splitting
UNIX legal disputes
UNIX open-source organization
Linux was born
Linux leader today
For more information, see http://coolshell.cn/articles/2322.html. In conclusion, we will know
UNIX legends (Part 1)
Chen HaoOnly by understanding the past can we know and understand it. In conclusion, we will know how to plan and how to proceed tomorrow. In the scroll wheel of time, many things are just like a meteor, and some things are
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
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
This article contains the following elements:
1, get the current date and time-how many ways do we have?
2, change the date display mode-date and time display form
3, the conversion of the current date is a Unix timestamp value
4. Change Date
A.
Dateutils time unit, very useful.
Remember to reference this unit, otherwise it cannot be used.
Comparedate: Compare the size of the date part of two date and time valuesComparedatetime compares the sizes of two datetime valuesComparetime: Compare
The direct subtraction of functions is not correct, you need to do this:
* * Get the current date and time
In Unix, time is represented by the number of seconds that have elapsed since 0 o'clock January 1, 1970, which is called the Unix timestamp (
Is UNIX used in daily office environments? Not necessarily very clumsy. Using the powerful functions and available system tools of Unix shell can greatly improve your work efficiency in the office.
Introduction
UNIX? The command line language is
This article contains the following content:1. Get the current date and time-how many ways do we have?2, change the way the date is displayed-the date and time of the display form3. Convert the current date to a Unix timestamp value4. Change the
Get the date of the dayDate +%y-%m-%dOutput: 2011-07-28Assigns the current date to a date variabledate=$ (Date +%y%m%d)Sometimes we need to use dates before or after today, so we can use the-D parameter of dateGet Tomorrow's dateDate-d Next-day
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.