码迷,mamicode.com
首页 >  
搜索关键字:date的其他灵活用法    ( 1个结果
date -d的灵活应用
*Toprintthedateofthedaybeforeyesterday:比如现在的时间是date:2017年05月01日星期一02:02:39CSTdate--date"1daysago"==date-d"1daysago"结果为:2017年04月30日星期日02:03:01CST*Toprintthedateofthedaythreemonthsandonedayhence:date--date‘3months1day‘==date-d"3months1..
分类:其他好文   时间:2017-06-30 12:22:30    阅读次数:172
1条  
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!