iamkun / iamkun/dayjs

Question / FeatureRequest - get localed timeFormat

Open
#1,471 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
48.7k
Forks
2.5k
PR merge metrics
No merged PRs in 30d

Description

Im using the localizedFormat plugin which gives me already the time in a localized format.
```
dayjs().format('LT') // 12:30 AM for example for en
```

Works perfect. Thanks for that :)

But is there a way to get the localized format ?

```
// pseudoCode
dayjs().getFormat('LT') // h:mm A
```

Contributor guide

Open the contributing guide

Research direction

Start by reading the localizedFormat plugin and the existing format API to understand how the LT token is resolved. Determine how a public method should expose the localized format pattern, then add coverage for the en example and verify the result against the plugin's current formatting behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
developer-experience
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.