AI助手支持GPT4.0
Date counter – is just a 3 kilobytes WordPress plugin that allows you to add a shortcode to count difference between two dates using start and end dates or display the current date easily.
日期计数器–只是一个3 KB的WordPress插件,可让您添加一个简码以使用开始日期和结束日期来计算两个日期之间的差,或者轻松显示当前日期。 p>
ul>
Don’t need anymore to change copyright year in footer each year!
不再需要每年更改页脚中的版权年份! p>
INPUT: Copyright © [DateCounter format="currentYear"]. INPUT:版权所有©[DateCounter format =“ currentYear”]。OUTPUT: Copyright © 2019.输出:版权所有©2019。 code> pre>Years – displays the difference in Years 年份 strong> –显示年份的差异 li>Months – displays the difference in Months 月份 strong> –显示月份的差异 li>Days – displays the difference in Days 天 strong> –显示天数差异 li>Hours – displays the difference in Hours 小时 strong> –显示小时数差异 li>Minutes – displays the difference in Minutes 分钟 strong> –以分钟为单位显示差异 li>Seconds – displays the difference in Seconds 秒 strong> –以秒为单位显示差异 li> ul>Example:示例: p>INPUT: I'm [DateCounter startDate="1998-08-25" endDate="now" format="Years"] years old! INPUT:我[DateCounter startDate =“ 1998-08-25” endDate =“ now” format =“ Years”]岁!OUTPUT: I'm 21 years old!输出:我今年21岁! code> pre>Custom output format 自定义输出格式 li> ul>Example:示例: p>INPUT: It's been [DateCounter startDate="2019-08-31" endDate="now" format="%a"] days since the end of summer :( INPUT:自夏天结束以来[[DateCounter startDate =“ 2019-08-31” endDate =“ now” format =“%a”]天:(OUTPUT: It's been 15 days since the end of summer :(输出:从夏天结束到现在已经15天了:( code> pre>startDate and endDate options startDate和endDate选项 h4>Any date format: 01.01.1991, 01-01-1991, 1991.01.01, 1991-01-01 任何日期格式: strong> 1991年1月1日,1991年1月1日,1991年1月1日,1991年1月1日 li>Now – gets current date and time 现在 strong> –获取当前日期和时间 li> ul>
INPUT:版权所有©[DateCounter format =“ currentYear”]。OUTPUT: Copyright © 2019.输出:版权所有©2019。
OUTPUT: Copyright © 2019.
输出:版权所有©2019。
code> pre>
Example:
示例: p>
INPUT: I'm [DateCounter startDate="1998-08-25" endDate="now" format="Years"] years old! INPUT:我[DateCounter startDate =“ 1998-08-25” endDate =“ now” format =“ Years”]岁!OUTPUT: I'm 21 years old!输出:我今年21岁! code> pre>Custom output format 自定义输出格式 li> ul>Example:示例: p>INPUT: It's been [DateCounter startDate="2019-08-31" endDate="now" format="%a"] days since the end of summer :( INPUT:自夏天结束以来[[DateCounter startDate =“ 2019-08-31” endDate =“ now” format =“%a”]天:(OUTPUT: It's been 15 days since the end of summer :(输出:从夏天结束到现在已经15天了:( code> pre>startDate and endDate options startDate和endDate选项 h4>Any date format: 01.01.1991, 01-01-1991, 1991.01.01, 1991-01-01 任何日期格式: strong> 1991年1月1日,1991年1月1日,1991年1月1日,1991年1月1日 li>Now – gets current date and time 现在 strong> –获取当前日期和时间 li> ul>
INPUT:我[DateCounter startDate =“ 1998-08-25” endDate =“ now” format =“ Years”]岁!OUTPUT: I'm 21 years old!输出:我今年21岁!
OUTPUT: I'm 21 years old!
输出:我今年21岁!
INPUT: It's been [DateCounter startDate="2019-08-31" endDate="now" format="%a"] days since the end of summer :( INPUT:自夏天结束以来[[DateCounter startDate =“ 2019-08-31” endDate =“ now” format =“%a”]天:(OUTPUT: It's been 15 days since the end of summer :(输出:从夏天结束到现在已经15天了:( code> pre>startDate and endDate options startDate和endDate选项 h4>Any date format: 01.01.1991, 01-01-1991, 1991.01.01, 1991-01-01 任何日期格式: strong> 1991年1月1日,1991年1月1日,1991年1月1日,1991年1月1日 li>Now – gets current date and time 现在 strong> –获取当前日期和时间 li> ul>
INPUT:自夏天结束以来[[DateCounter startDate =“ 2019-08-31” endDate =“ now” format =“%a”]天:(OUTPUT: It's been 15 days since the end of summer :(输出:从夏天结束到现在已经15天了:(
OUTPUT: It's been 15 days since the end of summer :(
输出:从夏天结束到现在已经15天了:(
/wp-content/plugins/date-counter
/ wp-content / plugins / date-counter code>目录,或直接通过WordPress插件屏幕安装插件。 li>Activate the plugin through the ‘Plugins’ screen in WordPress通过WordPress中的“插件”屏幕激活插件 li>Place shortcode [DateCounter startDate=”date” endDate=”date” format=”outputFormat”].放置简码 [DateCounter startDate =“ date” endDate =“ date” format =“ outputFormat”] strong>。 li>
ol>
原文出处:http://www.sanshu.cn/a/10238.html
群主管理都是支付大佬