POST TIME:2020-03-31 17:30
[field:senddate runphp='yes'] $ntime = time(); $oneday = 3600 * 24; $twoday = 3600 * 48; $threeday = 3600 * 72; if(($ntime - @me) < $oneday) @me = "今天"; elseif(($ntime - @me) < $twoday) @me = "昨天"; elseif(($ntime - @me) < $threeday) @me = "前天"; else @me=MyDate('m-d',@me); [/field:senddate] [field:senddate function=MyDate('H:s',@me)/] |