Skip to content

feat: add now/today helpers with datetime conversion and time token support#32

Open
anuzpandey wants to merge 2 commits into
mainfrom
feat/now-today-time
Open

feat: add now/today helpers with datetime conversion and time token support#32
anuzpandey wants to merge 2 commits into
mainfrom
feat/now-today-time

Conversation

@anuzpandey

Copy link
Copy Markdown
Owner

This PR adds current-date helpers and datetime-aware calendar conversion.

  • Adds LaravelNepaliDate::today($calendar) and LaravelNepaliDate::now($calendar)
  • Adds toNepaliDateTime() and toEnglishDateTime() with time preservation
  • Extends parsing to support date+time inputs across supported input types
  • Adds time format tokens: H, G, h, g, i, s, a, A
  • Includes tests for now/today behavior, time preservation, and parsing
  • Updates README with docs for flexible inputs, strict validation, and datetime usage

@anuzpandey anuzpandey self-assigned this Feb 12, 2026
@anuzpandey anuzpandey added the enhancement New feature or request label Feb 12, 2026
@anuzpandey anuzpandey marked this pull request as ready for review April 28, 2026 15:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant