Skip to content

feat: add formatters for dates and times#36

Merged
ramsey merged 2 commits intomainfrom
feature/date-time-formatter
Jan 21, 2022
Merged

feat: add formatters for dates and times#36
ramsey merged 2 commits intomainfrom
feature/date-time-formatter

Conversation

@ramsey
Copy link
Copy Markdown
Contributor

@ramsey ramsey commented Jan 19, 2022

Description

  • Provide functionality for formatting dates and times through Intl\DateTimeFormat, as well as FormatPHP::formatDate() and FormatPHP::formatTime() convenience methods.
  • Add UnableToFormatDateTimeException thrown when we're unable to format a date or time string.

Product requirements and context

How has this been tested?

PR Checklist

  • I have added tests to cover my changes.

@ramsey ramsey requested a review from a team January 19, 2022 23:04
@ramsey ramsey requested review from jmauerhan and xiian January 20, 2022 17:40
Comment thread src/FormatPHP.php
@qlty-cloud-legacy
Copy link
Copy Markdown

Code Climate has analyzed commit ec3eacf and detected 0 issues on this pull request.

The test coverage on the diff in this pull request is 100.0% (80% is the threshold).

This pull request will bring the total coverage in the repository to 97.1% (0.0% change).

View more on Code Climate.

@ramsey ramsey merged commit 9b5efb0 into main Jan 21, 2022
@ramsey ramsey deleted the feature/date-time-formatter branch January 21, 2022 02:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants