{"id":13133,"date":"2011-05-03T20:28:26","date_gmt":"2011-05-03T20:28:26","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/dynamic-dates\/"},"modified":"2015-05-09T11:14:09","modified_gmt":"2015-05-09T11:14:09","slug":"dynamic-dates","status":"publish","type":"plugin","link":"https:\/\/sr.wordpress.org\/plugins\/dynamic-dates\/","author":7737393,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"2.0.5","stable_tag":"trunk","tested":"4.2.39","requires":"2.7","requires_php":"","requires_plugins":"","header_name":"Dynamic Dates","header_author":"Jason Hendriks","header_description":"","assets_banners_color":"","last_updated":"2015-05-09 11:14:09","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"https:\/\/wordpress.org\/plugins\/dynamic-dates\/","header_author_uri":"http:\/\/jasonhendriks.com\/","rating":0,"author_block_rating":0,"active_installs":100,"downloads":7935,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":[],"upgrade_notice":{"2.0.3":"<p>Stop clogging outfile with debug statements. Bug fixes.<\/p>","2.0.2":"<p>Fixed the error that presents in some environment &quot;Unknown or bad timezone&quot;<\/p>","2.0.1":"<p>Fix name collision issues with other plugins.<\/p>","2.0":"<p>The first major update in nearly four years! Now with timezone and language support.<\/p>","1.0.1":"<p>A superficial update to re-list Dynamic Dates in the WordPress plugin directory<\/p>","1.0.0":"<p>The first version. Yay!<\/p>"},"ratings":{"1":0,"2":0,"3":0,"4":0,"5":0},"assets_icons":[],"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.0.0","1.0.1","2.0","2.0.1","2.0.2","2.0.3"],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":"1116419","resolution":"1","location":"assets"}},"screenshots":{"1":"Dynamic Dates running at <a href=\"http:\/\/www.jasonhendriks.com\/programmer\/dynamic-dates\/dynamic-dates-examples\/\">jasonhendriks.com<\/a>"},"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[1358,4708,1506,1356,9192],"plugin_category":[40,46,59],"plugin_contributors":[78018],"plugin_business_model":[],"class_list":["post-13133","plugin","type-plugin","status-publish","hentry","plugin_tags-date","plugin_tags-dates","plugin_tags-dynamic","plugin_tags-time","plugin_tags-times","plugin_category-calendar-and-events","plugin_category-editor-and-writing","plugin_category-utilities-and-tools","plugin_contributors-jasonhendriks","plugin_committers-jasonhendriks"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/dynamic-dates.svg","icon_2x":false,"generated":true},"screenshots":[{"src":"https:\/\/ps.w.org\/dynamic-dates\/assets\/screenshot-1.png?rev=1116419","caption":"Dynamic Dates running at <a href=\"http:\/\/www.jasonhendriks.com\/programmer\/dynamic-dates\/dynamic-dates-examples\/\">jasonhendriks.com<\/a>"}],"raw_content":"<!--section=description-->\n<p>Calculates dates and relative dates dynamically in your posts and pages. For example:<\/p>\n\n<blockquote>\n  <p>Our church's next service is on <strong>Mar 21\/15<\/strong><\/p>\n  \n  <p><code>[date format=\"M d\/Y\" time=\"this Sunday\"]<\/code><\/p>\n<\/blockquote>\n\n<p>Add an always up-to-date copyright notice, or the date of your next monthly poker game.<\/p>\n\n<p>See <a href=\"http:\/\/programmer.jasonhendriks.com\/dynamic-dates\/dynamic-dates-examples\/\">examples on my website<\/a>. See the FAQ for instructions on use.<\/p>\n\n<h3>* What's New for v2 *<\/h3>\n\n<ul>\n<li>Now supporting the local WordPress timezone, user-specified timezones, and user-specified languages!<\/li>\n<\/ul>\n\n<h4>Requirements<\/h4>\n\n<ul>\n<li>PHP 5.2 for user-specified timezones or PHP 5.3 with the International extension for user-specified languages.<\/li>\n<\/ul>\n\n<!--section=installation-->\n<ol>\n<li>Download Dynamic Dates<\/li>\n<li>Unzip and upload the resulting folder to the '\/wp-content\/plugins\/' directory<\/li>\n<li>Activate the plugin through the 'Plugins' menu in WordPress<\/li>\n<li>Place a Dynamic Date shortcode in your posts and\/or pages. A theme template function call is also available.<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt>How does it work?<\/dt>\n<dd><p>Dynamic Dates uses PHP's <a href=\"http:\/\/php.net\/manual\/en\/datetime.formats.relative.php\">strtotime()<\/a> 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 <a href=\"http:\/\/php.net\/manual\/en\/datetime.formats.relative.php\">strtotime()<\/a> reference to find other possibilities.<\/p><\/dd>\n<dt>How can I display a simple date?<\/dt>\n<dd><p>Use one of the built-in shortcodes:<\/p>\n\n<blockquote>\n  <p><code>[now]<\/code>, <code>[yesterday]<\/code>, <code>[today]<\/code>, <code>[tomorrow]<\/code>, <code>[last-month]<\/code>, <code>[this-month]<\/code>, <code>[next-month]<\/code>, <code>[last-year]<\/code>, <code>[this-year]<\/code>, <code>[next-year]<\/code><\/p>\n<\/blockquote>\n\n<p>See <a href=\"http:\/\/programmer.jasonhendriks.com\/dynamic-dates\/dynamic-dates-examples\/\">live examples<\/a> at my website.<\/p><\/dd>\n<dt>How can I display a customized date?<\/dt>\n<dd><p>This is a very powerful feature. Use any shortcode, or the generic <code>[date]<\/code> shortcode, and extend it with the following attributes, each of which is optional:<\/p>\n\n<ul>\n<li>format - a pattern to format the date or time. Browse the different formatting codes for <a href=\"http:\/\/php.net\/manual\/en\/function.date.php\">English mode<\/a> and <a href=\"http:\/\/userguide.icu-project.org\/formatparse\/datetime\">International mode<\/a>.<\/li>\n<li>time - the date or time <a href=\"http:\/\/php.net\/manual\/en\/datetime.formats.relative.php\">specified with natural language<\/a><\/li>\n<li>relative_to - a date or time that the first time is \"relative to\", also specified with natural language<\/li>\n<li>timezone - a <a href=\"http:\/\/www.oracle.com\/technetwork\/java\/javase\/javase7locales-334809.html\">timezone<\/a> to display (the default is set in the WordPress settings (requires PHP 5.2 or higher)<\/li>\n<li>language - a language to use (requires PHP 5.3 or higher)<\/li>\n<\/ul>\n\n<p>'English Mode' advanced examples:<\/p>\n\n<blockquote>\n  <p>It's <strong>Sunday 15:58:47<\/strong> in Paris, France<\/p>\n\n<pre><code>[date format=\"l H:i:s\" timezone=\"Europe\/Paris\"]\n<\/code><\/pre>\n  \n  <p>Canadian Thanksgiving is <strong>October 12th<\/strong> this year and <strong>October 10th<\/strong> next year<\/p>\n\n<pre><code>[date format=\"F jS\" time=\"second monday of october\"]\n[date format=\"F jS\" time=\"second monday of october\" relative_to=\"next year\"]\n<\/code><\/pre>\n<\/blockquote>\n\n<p>'International Mode' advanced examples:<\/p>\n\n<blockquote>\n  <p>Voy a la fiesta <strong>el viernes 22 de marzo<\/strong><\/p>\n\n<pre><code>`[date format=\"d de MMMM\" \"time=\"friday\" language=\"es_CL\"]`\n<\/code><\/pre>\n<\/blockquote>\n\n<p>See <a href=\"http:\/\/programmer.jasonhendriks.com\/dynamic-dates\/dynamic-dates-examples\/\">live examples<\/a> at my website.<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>2.0.5 - 2015-05-08<\/h4>\n\n<ul>\n<li>[<a href=\"https:\/\/wordpress.org\/support\/topic\/after-update-unknown-or-bad-timezone?replies=7\">Ticket<\/a>] Dates tags resulted in an error if the WordPress timezone was a GMT offset. Fixed.<\/li>\n<\/ul>\n\n<h4>2.0.3 - 2015-03-20<\/h4>\n\n<ul>\n<li>Fixed: The method used to calculate the current timezone was faulty for some environments (produced '-4' for Toronto instead of '-5' during DST)<\/li>\n<li>Fixed: The method used to apply timezones was incorrectly applying it to calculated dates without times (eg. 'next sunday')<\/li>\n<li>Added an option to set the Log Level (defaulted to Error) instead of just blindly writing debug lines into debug.log\/error.log<\/li>\n<li>Fixed: Systems with no ability to format international dates were incorrectly allowed to enable international formatting<\/li>\n<\/ul>\n\n<h4>2.0.2 - 2015-01-28<\/h4>\n\n<ul>\n<li>Fixed: In some PHP environments, the WordPress timezone setting can not be interpreted - the error is DateTimeZone::__construct() [datetimezone.--construct]: Unknown or bad timezone<\/li>\n<\/ul>\n\n<h4>2.0.1 - 2015-01-27<\/h4>\n\n<ul>\n<li>Gave the settings group name a more unique name to avoid collisions with other plugins<\/li>\n<\/ul>\n\n<h4>2.0 - 2015-01-25<\/h4>\n\n<ul>\n<li>Added timezone support, the most requested feature. The default timezone is set in the WordPress configuration. Requires PHP 5.2. Use the timezone shortcode attribute.<\/li>\n<li>Added international language support, the second most requested feature. The default language is set in the WordPress configuration. Requires PHP 5.3 with the International extension. Use the language shortcode attribute.<\/li>\n<\/ul>\n\n<h4>1.0.1 - 2015-01-23<\/h4>\n\n<ul>\n<li>A biennial update to re-list Dynamic Dates in the WordPress plugin directory<\/li>\n<\/ul>\n\n<h4>1.0.0 - 2011-05-03<\/h4>\n\n<ul>\n<li>First release<\/li>\n<li>Tested with PHP v5.3.4<\/li>\n<\/ul>","raw_excerpt":"Calculate dates (&#039;next Sunday&#039;) and relative dates (&#039;December 25th two years from now&#039;) in your posts and pages.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/sr.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/13133","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/sr.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/sr.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/sr.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=13133"}],"author":[{"embeddable":true,"href":"https:\/\/sr.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/jasonhendriks"}],"wp:attachment":[{"href":"https:\/\/sr.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=13133"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/sr.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=13133"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/sr.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=13133"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/sr.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=13133"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/sr.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=13133"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/sr.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=13133"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}