Date counter

Popis

Date counter je WordPress plugin, ktorý má len 9 kilobajtov.

Jednoducho zobrazte aktuálny dátum alebo vypočítajte rozdiel medzi dvoma dátumami.

Aktuálny dátum a čas

Current date & time: [CurrentDatetime format="d/m/Y H:i"].
Current date & time: 05.07.2021 12:48.

[CurrentDatetime format="jS F, Y"].
6th July, 2021.

It's [CurrentDatetime format="g:i A (e)"].
It's 10:35 AM (UTC).

Všetky možné formáty nájdete v dokumentácii.

Rozdiel dátumu a času

I'm [DatetimeDifference startDate="1998-08-25" endDate="now" format="Y"] years old.
I'm 23 years old now.

[DatetimeDifference startDate="31.12.2020" endDate="now" format="a"] days have passed since the new year.
187 days have passed since the new year.

Tomorrow's trip at 14:35 (2:35 PM) starts in [DatetimeDifference startDate="now" endDate="07.07.2021 14:35" format="h hours & i minutes"].
Tomorrow's trip at 14:35 (2:35 PM) starts in 8 hours & 34 minutes.

Všetky možné formáty nájdete v dokumentácii.

Celkový rozdiel dátumu a času

The store will open in [TotalDatetimeDifference startDate="now" endDate="16.07.2021 8:00" format="i"] minutes today.
The store will open in 19 minutes today.

[TotalDatetimeDifference startDate="now" endDate="25.08.2025" format="d"] days left until my b-day.
39 days left until my b-day.

Všetky možné formáty nájdete v dokumentácii.

🤘Extra

Shift from today’s date: ± N days | ± N weeks | ± N months | ± N years

[DatetimeDifference startDate="now" endDate="+1day" format="d"]
[TotalDatetimeDifference startDate="-3years" endDate="now" format="d"]

Post created & modified date

[DatetimeDifference startDate="post:created" endDate="now" format="d"]
[TotalDatetimeDifference startDate="now" endDate="post:modified" format="d"]

Inštalácia

  1. Nahrajte súbory pluginu do adresára /wp-content/plugins/date-counter alebo nainštalujte plugin priamo cez stránku pluginov WordPress.
  2. Plugin aktivujte prostredníctvom stránky „Pluginy“ vo WordPress
  3. Umiestnite shortcode.

Recenzie

15. júla 2021 9 replies
Love it, but would like the option to count all minutes or hours from a specified date.
22. marca 2021
Amazing easy to setup plugin. I was able to achieve exactly what I wanted with this plugin. Now on my front page at pipeworkpieces.com for potential customers I am able to easily change this from the back end based on my amount of orders. IMPORTANT NOTES: Delivery on items are 2 -4 weeks based on current orders in production and orders are scheduled to be made as they come in. If you place your order for your piece today your piece is guaranteed to be ready for shipping on Mon, Apr 12 . Great plugin
7. októbra 2019
I have been looking for something like this for a long time! Thank you very much for such a great job!
4. júna 2019
Just as I needed. I made a little changed in code to seperate each digit and add extra own css to present number of days always as typical counter 🙂
Prečítať všetkých 8 recenzií

Prispievatelia a vývojári

“Date counter” je softvér s otvoreným zdrojovým kódom. Do tohto pluginu prispeli nasledujúci ľudia.

Prispievatelia

„Date counter“ bol preložený do 9 jazykov. Ďakujeme prekladateľom za ich príspevky.

Preložiť „Date counter“ do vašho jazyka.

Máte záujem o vývoj?

Prehľadávajte zdrojový kód, preskúmajte SVN repozitár, alebo sa prihláste na odber vývojárskeho logu cez RSS.

Zoznam zmien

2.0.3

Fixed exception messages in DatetimeDifference and TotalDatetimeDiffrence classes. Added support for creation and modification dates of the current post.

2.0.0

Plugin prepracovaný: pridané nové funkcie a zjednodušený všeobecné pracovné proces.

1.0.4

Pridaná podpora pre správu časových pásiem. Teraz môžete zmeniť časové pásmo pomocou nastavení WordPress.

1.0.2

1.0.1

  • Prvá verzia pluginu Počítadlo dátumov.