In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
The editor would like to share with you the method of weaving a dream to change the time label to "today, tomorrow, the day after tomorrow". I hope you will learn a lot after reading this article. Let's discuss it together.
Dream weaving how to change the time label to "today, tomorrow, the day after tomorrow"?
Dream-weaving DEDECMS changes the time tag to "today, tomorrow, the day after tomorrow"
Recommended study: dream weaving cms
[field:senddate runphp='yes'] $ntime = time (); $oneday = 3600 * 24; $twoday = 3600 * 48; $threeday = 3600 * 72; if ($ntime-@ me) < $oneday) @ me= "Today"; elseif (($ntime-@ me) < $twoday) @ me= "yesterday"; elseif (($ntime-@ me) < $threeday) @ me= "the day before yesterday"; else @ me=MyDate ('MMI dudes) [/ field:senddate] [field:senddate function=MyDate ('Hlypher slots) /]
The above paragraph is the realization date, if it is today, it shows today, and yesterday shows yesterday. With the time tag below, you can achieve the effect of "11:41 today". When the post time is not within three days, it shows the time and date, like this "05-24 11:41". The pubdate field also applies.
After reading this article, I believe you have a certain understanding of the method of weaving dreams to change the time label to "today, tomorrow, the day after tomorrow". If you want to know more about it, welcome to follow the industry information channel, thank you for your reading!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.