跳到内容

Nepali Date Utilities

v1.1.0

ashokbasnet · 2018年11月14日 上架

Nepali Date Utilities converts English (AD) dates to Nepali (BS) for posts, comments, shortcodes, blocks, and a monthly post calendar.

正在使用
1,000+
评分
4.7 / 5
累计下载
1.1 万
最近更新
2026年10月31日
3 条评价需要 WordPress 5.0+已测试到 7.1.5PHP 7.4+

贡献者

截图

Display settings with live preview, format presets, and About
Display settings with live preview, format presets, and About
Post Calendar tab with shortcode docs and live BS calendar preview
Post Calendar tab with shortcode docs and live BS calendar preview
Instant AD ↔ BS converter
Instant AD ↔ BS converter
Help & shortcodes — format tokens and usage examples
Help & shortcodes — format tokens and usage examples
Nepali post dates on the front end
Nepali post dates on the front end

Nepali Date Utilities converts English (AD) dates to Nepali (BS) for posts, comments, shortcodes, blocks, and a monthly post calendar. It helps Nepali sites show Bikram Sambat dates consistently across WordPress.

Features

  • Convert post and modified dates to Nepali
  • Convert comment dates
  • Bilingual display (BS + AD)
  • Devanagari or Arabic numerals
  • Home / front page modes: default format, relative “time ago”, or hide
  • Shortcodes: [ndu_today_date], [ndu_date_ago], [ndu_convert], [ndu_post_calendar]
  • Classic “Today Date in Nepali” widget (optional format)
  • Gutenberg blocks: Nepali Today Date and Nepali Post Calendar
  • Monthly BS post calendar with navigation, dual dates, optional post links, and accent color
  • Admin converter: English Nepali
  • Live format preview and format presets in settings

Shortcodes

  • [ndu_today_date] — today’s date
  • [ndu_today_date format="y m d, l"] — custom format
  • [ndu_date_ago] — relative time for the current post
  • [ndu_convert date="2024-10-31" from="eng" format="y m d"] — AD BS
  • [ndu_convert date="2081-07-15" from="nep"] — BS AD
  • [ndu_post_calendar] — monthly BS calendar
  • [ndu_post_calendar year="2081" month="7" lang="english" show_post_links="1" accent="#c62828"] — calendar with options

Format tokens

  • y — year (e.g. २०८१)
  • m — month name (e.g. कार्तिक)
  • d — day number
  • l — weekday
  • H / h — hour (24h / 12h)
  • i — minute
  • s — second
  • a — period of day (बिहान / दिउँसो / साँझ / राति)

PHP helpers

ndu_today_date(), `ndu_get_date_ago()`, `ndu_format_nepali_date( $timestamp, $format )`

Supported conversion range: AD 1944–2033 / BS 2000–2099.

Plums

按场景查找 WordPress 插件。安装量、评分和兼容版本来自官方目录。

导航

说明

WordPress 是 WordPress Foundation 的商标。本站与 WordPress Foundation、Automattic 没有隶属关系。这里不托管插件文件,下载和安装以 WordPress.org 上的页面为准。

© 2026 Plums