Beschreibung
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.
Format options
- currentYear – displays the current Year
- currentMonth – displays the current Month
- currentDay – displays the current Day
Don’t need anymore to change copyright year in footer each year!
INPUT: Copyright © [DateCounter format="currentYear"].
OUTPUT: Copyright © 2020.
- Years – displays the difference in Years
- Months – displays the difference in Months
- Weeks – displays the difference in Weeks
- Days – displays the difference in Days
- Hours – displays the difference in Hours
- Minutes – displays the difference in Minutes
- Seconds – displays the difference in Seconds
Example:
INPUT: I'm [DateCounter startDate="1998-08-25" endDate="now" format="Years"] years old!
OUTPUT: I'm 21 years old!
Example:
INPUT: It's been [DateCounter startDate="2019-08-31" endDate="2019-09-15" format="%a"] days since the end of summer :(
OUTPUT: It's been 15 days since the end of summer :(
startDate and endDate options
- Any date format: 01.01.1991, 01-01-1991, 1991.01.01, 1991-01-01
- Now – gets current date and time
Installation
- Upload the plugin files to the
/wp-content/plugins/date-counter
directory, or install the plugin through the WordPress plugins screen directly. - Activate the plugin through the ‚Plugins‘ screen in WordPress
- Place shortcode [DateCounter startDate=“date“ endDate=“date“ format=“outputFormat“].
Rezensionen
Mitwirkende & Entwickler
„Date counter“ ist Open-Source-Software. Folgende Menschen haben an diesem Plugin mitgewirkt:
Mitwirkende„Date counter“ wurde in 3 Sprachen übersetzt. Danke an die Übersetzerinnen und Übersetzer für ihre Mitwirkung.
Übersetze „Date counter“ in deine Sprache.
Interessiert an der Entwicklung?
Durchstöbere den Code, sieh dir das SVN Repository an oder abonniere das Entwicklungsprotokoll per RSS.
Änderungsprotokoll
1.0.2
- Improved calculations
- Added support for PHP DateInterval::format
1.0.1
- Just a first version of a Date counter plugin.