use the shell in Linux to get yesterday, tomorrow or many days before the date time -- A- , the: -:xxblogjava-Expert Area Original http://www.blogjava.net/xzclog/archive/2015/12/08/428555.htmlTheme Shell Original address:
The date format of php processing is seconds ago, minutes ago, hours ago, yesterday, and the day before yesterday. *** modify the date format to different display styles according to the following rules * The number of seconds before Display is less
The date format of php processing is seconds ago, minutes ago, hours ago, yesterday, and the day before yesterday. *** modify the date format to different display styles according to the following rules * The number of seconds before Display is less
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
The php processing date format is seconds ago, minutes ago, hours ago, yesterday, and the day before yesterday.
Source: http://www.crazyphper.com
/**
* Change the date format to different display styles according to the
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 '"
First, how does Perl get
Copy Code code as follows:
#!/usr/bin/perl-w
Use POSIX QW (strftime);
My $day = strftime ("%y%m%d", LocalTime (time-24*3600)); #获取昨天的日期
Second, in Linux on the man date-d parameters of the
PHP processing date format is seconds ago, minutes ago, hours ago, yesterday, the day before
/** * Change the date format to a different display style according to the following rules * Less than 1 minutes show how many seconds ago * less than
PHP processing date format is seconds ago, minutes ago, hours ago, yesterday, the day before
/** * Change the date format to a different display style according to the following rules * Less than 1 minutes show how many seconds ago * less than
Use php to get detailed information about the timestamp of today, tomorrow, and yesterday. Use php to get the time. today, tomorrow, yesterday, the timestamp 2013-06-1? Phpecho today :. date (Y-m-d ). br; echo yesterday :. date (Y-m-d, strtotime
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.