
內容簡介
Date counter- 這是一個僅有9KB大小的WordPress外掛程式。
輕鬆地顯示當前日期或計算兩個日期之間的差異。
現在的日期和時間
現在的日期和時間:[CurrentDatetime format ="d/m/Y H:i"]。
現在的日期和時間:05.07.2021 12:48。
[CurrentDatetime format="jS F, Y"]。
2021年7月6日。
現在是[CurrentDatetime format ="g:i A(e)"]。
現在是上午10:35(協調世界時)。
您可以在文檔中找到所有可能的格式 。
日期和時間差異
我今年[DatetimeDifference startDate="1998-08-25" endDate="now" format="Y"] 歲了。
我現在23歲。
[DatetimeDifference startDate="31.12.2020" endDate="now" format="a"]天已經過去自新年以來。
自新年以來已經過去187天。
明天旅行時間為14:35(下午2點35分),開始時間[DatetimeDifference startDate="now" endDate="07.07.2021 14:35" format="h小時&i分鐘"]。
明天的旅行將在8小時34分鐘後開始。
您可以在文檔中找到所有可能的格式。
日期和時間的總差異
今天商店將在[TotalDatetimeDifference startDate="now" endDate="16.07.2021 8:00" format="i"]分鐘後開門。
今天商店將在19分鐘後開門。
[TotalDatetimeDifference startDate="now" endDate="25.08.2025" format="d"]天以後是我的生日。
距離我的生日還差39天。
您可以在文檔中找到所有可能的格式。
外掛標籤
開發者團隊
原文外掛簡介
Date counter – is just a 9 kilobytes WordPress plugin.
Easily display the current date or calculate the difference between two dates.
Current date & time
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).
You can find all possible formats in documentation.
Date & time difference
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.
You can find all possible formats in documentation.
Total date & time difference
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.
You can find all possible formats in documentation.
🤘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"]
