bitwalker / bitwalker/timex

Recommended way to add ordinal suffix for the day of month?

Open
#426 2 comments 5 reactions 0 assignees View on GitHub
feature/enhancement
Dominant language
Elixir
Stars
1.8k
Forks
407
PR merge metrics
No merged PRs in 30d

Description

I cannot find the ordinal suffix for the month in the Timex.Format.DateTime.Formatter module. Similar to what PHP has for their datetime:
English ordinal suffix for the day of the month, 2 characters | st, nd, rd or th.
http://php.net/manual/en/function.date.php

Is a custom formatter recommended to add the suffix?

Contributor guide

Open the contributing guide

Research direction

Start with the Timex.Format.DateTime.Formatter module named in the issue and review how existing date formatting options are implemented. Compare the requested English day-of-month suffix behavior with the referenced PHP behavior; done should mean the project has a decided, documented approach or an implemented formatter with matching coverage.

Written by the indexing model from the issue text.

Assessment

Tech stack
elixir
Domain
backend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.