{"id":86383,"date":"2018-05-28T07:25:21","date_gmt":"2018-05-28T07:25:21","guid":{"rendered":"https:\/\/wordpress.org\/plugins\/date-counter\/"},"modified":"2024-12-19T20:30:24","modified_gmt":"2024-12-19T20:30:24","slug":"date-counter","status":"publish","type":"plugin","link":"https:\/\/szl.wordpress.org\/plugins\/date-counter\/","author":16174437,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"2.0.3","stable_tag":"trunk","tested":"6.8.5","requires":"3.1","requires_php":"5.3","requires_plugins":null,"header_name":"Date counter","header_author":"Konstantin Pankratov","header_description":"Date counter is a 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.","assets_banners_color":"181818","last_updated":"2024-12-19 20:30:24","external_support_url":"","external_repository_url":"","donate_link":"https:\/\/buymeacoffee.com\/ko.pa","header_plugin_uri":"https:\/\/github.com\/KonstantinPankratov\/WordPress-Plugin-Date-counter","header_author_uri":"http:\/\/kopa.pw\/","rating":5,"author_block_rating":0,"active_installs":1000,"downloads":20061,"num_ratings":8,"support_threads":1,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","changelog"],"tags":[],"upgrade_notice":{"2.0.3":"<p>Added support for creation and modification dates of the current post via new values of startDate and endDate - post:created and post:modified.<\/p>","2.0.2":"<p>Added a function to calculate the total difference between date &amp; time. Minor fixes.<\/p>","2.0.1":"<p>Fixed backwards compatibility with v1<\/p>","2.0.0":"<p>The new version of the plugin, even easier and even more features!<\/p>","1.0.4":"<p>Added support for Time Zone management. You can now change the time zone using the WordPress settings.<\/p>","1.0.2":"<p>Added support for <a href=\"https:\/\/www.php.net\/manual\/ru\/dateinterval.format.php\">PHP DateInterval::format<\/a><\/p>"},"ratings":{"1":0,"2":0,"3":0,"4":0,"5":8},"assets_icons":{"icon-128x128.jpg":{"filename":"icon-128x128.jpg","revision":2559868,"resolution":"128x128","location":"assets","locale":""},"icon-256x256.jpg":{"filename":"icon-256x256.jpg","revision":2559868,"resolution":"256x256","location":"assets","locale":""}},"assets_banners":{"banner-1544x500-rtl.jpg":{"filename":"banner-1544x500-rtl.jpg","revision":2559868,"resolution":"1544x500","location":"assets","locale":""},"banner-1544x500.jpg":{"filename":"banner-1544x500.jpg","revision":2559868,"resolution":"1544x500","location":"assets","locale":""},"banner-772x250-rtl.jpg":{"filename":"banner-772x250-rtl.jpg","revision":2559868,"resolution":"772x250","location":"assets","locale":""},"banner-772x250.jpg":{"filename":"banner-772x250.jpg","revision":2559868,"resolution":"772x250","location":"assets","locale":""}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":[],"block_files":[],"assets_screenshots":[],"screenshots":[],"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[869,1358,235978,1424,3850],"plugin_category":[36],"plugin_contributors":[157213],"plugin_business_model":[],"class_list":["post-86383","plugin","type-plugin","status-publish","hentry","plugin_tags-counter","plugin_tags-date","plugin_tags-date-counter","plugin_tags-days","plugin_tags-years","plugin_category-analytics","plugin_contributors-pankratovkm","plugin_committers-pankratovkm"],"banners":{"banner":"https:\/\/ps.w.org\/date-counter\/assets\/banner-772x250.jpg?rev=2559868","banner_2x":"https:\/\/ps.w.org\/date-counter\/assets\/banner-1544x500.jpg?rev=2559868","banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":false,"icon":"https:\/\/ps.w.org\/date-counter\/assets\/icon-128x128.jpg?rev=2559868","icon_2x":"https:\/\/ps.w.org\/date-counter\/assets\/icon-256x256.jpg?rev=2559868","generated":false},"screenshots":[],"raw_content":"<!--section=description-->\n<p>Date counter - is just a 9 kilobytes WordPress plugin.<\/p>\n\n<p>Easily display the current date or calculate the difference between two dates.<\/p>\n\n<h3>Current date &amp; time<\/h3>\n\n<pre><code>Current date &amp; time: [CurrentDatetime format=\"d\/m\/Y H:i\"].\nCurrent date &amp; time: 05.07.2021 12:48.\n\n[CurrentDatetime format=\"jS F, Y\"].\n6th July, 2021.\n\nIt's [CurrentDatetime format=\"g:i A (e)\"].\nIt's 10:35 AM (UTC).\n<\/code><\/pre>\n\n<p>You can find all possible formats in <a href=\"https:\/\/date-counter.kopa.pw\/#current_datetime\" title=\"Date counter documentation.\">documentation<\/a>.<\/p>\n\n<h3>Date &amp; time difference<\/h3>\n\n<pre><code>I'm [DatetimeDifference startDate=\"1998-08-25\" endDate=\"now\" format=\"Y\"] years old.\nI'm 23 years old now.\n\n[DatetimeDifference startDate=\"31.12.2020\" endDate=\"now\" format=\"a\"] days have passed since the new year.\n187 days have passed since the new year.\n\nTomorrow's trip at 14:35 (2:35 PM) starts in [DatetimeDifference startDate=\"now\" endDate=\"07.07.2021 14:35\" format=\"h hours &amp; i minutes\"].\nTomorrow's trip at 14:35 (2:35 PM) starts in 8 hours &amp; 34 minutes.\n<\/code><\/pre>\n\n<p>You can find all possible formats in <a href=\"https:\/\/date-counter.kopa.pw\/#datetime_difference\" title=\"Date counter documentation.\">documentation<\/a>.<\/p>\n\n<h3>Total date &amp; time difference<\/h3>\n\n<pre><code>The store will open in [TotalDatetimeDifference startDate=\"now\" endDate=\"16.07.2021 8:00\" format=\"i\"] minutes today.\nThe store will open in 19 minutes today.\n\n[TotalDatetimeDifference startDate=\"now\" endDate=\"25.08.2025\" format=\"d\"] days left until my b-day.\n39 days left until my b-day.\n<\/code><\/pre>\n\n<p>You can find all possible formats in <a href=\"https:\/\/date-counter.kopa.pw\/#total_datetime_difference\" title=\"Date counter documentation.\">documentation<\/a>.<\/p>\n\n<h3>\ud83e\udd18Extra<\/h3>\n\n<h4>Shift from today's date: \u00b1 N days | \u00b1 N weeks | \u00b1 N months | \u00b1 N years<\/h4>\n\n<pre><code>[DatetimeDifference startDate=\"now\" endDate=\"+1day\" format=\"d\"]\n[TotalDatetimeDifference startDate=\"-3years\" endDate=\"now\" format=\"d\"]\n<\/code><\/pre>\n\n<h4>Post created &amp; modified date<\/h4>\n\n<pre><code>[DatetimeDifference startDate=\"post:created\" endDate=\"now\" format=\"d\"]\n[TotalDatetimeDifference startDate=\"now\" endDate=\"post:modified\" format=\"d\"]\n<\/code><\/pre>\n\n<!--section=installation-->\n<ol>\n<li>Upload the plugin files to the <code>\/wp-content\/plugins\/date-counter<\/code> directory, or install the plugin through the WordPress plugins screen directly.<\/li>\n<li>Activate the plugin through the 'Plugins' screen in WordPress<\/li>\n<li>Place shortcode.<\/li>\n<\/ol>\n\n<!--section=changelog-->\n<h4>2.0.3<\/h4>\n\n<p>Fixed exception messages in DatetimeDifference and TotalDatetimeDiffrence classes. Added support for creation and modification dates of the current post.<\/p>\n\n<h4>2.0.0<\/h4>\n\n<p>Redesigned plugin: added new features and simplified general workflow.<\/p>\n\n<h4>1.0.4<\/h4>\n\n<p>Added support for Time Zone management. You can now change the time zone using the WordPress settings.<\/p>\n\n<h4>1.0.2<\/h4>\n\n<ul>\n<li>Improved calculations<\/li>\n<li>Added support for <a href=\"https:\/\/www.php.net\/manual\/ru\/dateinterval.format.php\">PHP DateInterval::format<\/a><\/li>\n<\/ul>\n\n<h4>1.0.1<\/h4>\n\n<ul>\n<li>Just a first version of a Date counter plugin.<\/li>\n<\/ul>","raw_excerpt":"Date counter - is just a 9 kilobytes WordPress plugin.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/szl.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/86383","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/szl.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/szl.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/szl.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=86383"}],"author":[{"embeddable":true,"href":"https:\/\/szl.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/pankratovkm"}],"wp:attachment":[{"href":"https:\/\/szl.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=86383"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/szl.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=86383"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/szl.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=86383"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/szl.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=86383"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/szl.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=86383"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/szl.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=86383"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}