Typecho使用者和开发者的园地https://forum.typecho.org/
https://forum.typecho.org/viewtopic.php?t=11016
代码: 全选
<?php $this->date('Y'); ?>
<?php $a = $this->date('Y'); ?>
<?php $Mybirthyear = 1988;$time_1 = $this->created;$age = date('Y',$time_1) - $Mybirthyear;echo '('.$age."岁)";?>