开发者 | jasonhendriks |
---|---|
更新时间 | 2015年5月9日 19:14 |
PHP版本: | 2.7 及以上 |
WordPress版本: | 4.1.1 |
版权: | GPLv2 or later |
版权网址: | 版权信息 |
Our church's next service is on Mar 21/15
[date format="M d/Y" time="this Sunday"]
Add an always up-to-date copyright notice, or the date of your next monthly poker game.
See examples on my website. See the FAQ for instructions on use.
* What's New for v2 *
Dynamic Dates uses PHP's strtotime() function to parse natural language into relative timestamps. For example, two years from now is "+2 year" and Canadian Thanksgiving is the "second monday of october" . Browse the full strtotime() reference to find other possibilities.
Use one of the built-in shortcodes:
See live examples at my website.[now]
,[yesterday]
,[today]
,[tomorrow]
,[last-month]
,[this-month]
,[next-month]
,[last-year]
,[this-year]
,[next-year]
This is a very powerful feature. Use any shortcode, or the generic [date]
shortcode, and extend it with the following attributes, each of which is optional:
It’s Sunday 15:58:47 in Paris, France'International Mode' advanced examples:[date format="l H:i:s" timezone="Europe/Paris"]
Canadian Thanksgiving is October 12th this year and October 10th next year[date format="F jS" time="second monday of october"] [date format="F jS" time="second monday of october" relative_to="next year"]
Voy a la fiesta el viernes 22 de marzo
`[date format="d de MMMM" "time="friday" language="es_CL"]`
See live examples at my website.