Skip to content

feat: add full date-time formatting with seconds - #7

Merged
rubensdemelo merged 1 commit into
mainfrom
codex/identify-missing-implementations
Sep 28, 2026
Merged

rubensdemelo merged 1 commit into
mainfrom
codex/identify-missing-implementations

Conversation

@rubensdemelo

Copy link
Copy Markdown
Collaborator

Motivation

  • Provide a convenient extension that formats date and time including seconds in the common Brazilian pattern dd/MM/yyyy HH:mm:ss so callers don't need to combine formats manually.
  • Ensure this new use-case is covered by docs, example and tests to prevent regressions for padded and non-padded time values.

Description

  • Add diaMesAnoHoraMinutoSegundo() to lib/brasil_datetime.dart, which returns dd/MM/yyyy HH:mm:ss and preserves the package's lazy pt_BR initialization via _garantirInicializacao().
  • Add unit tests exercising the new formatter and padded/non-padded time cases in test/brasil_datetime_test.dart.
  • Document the new method in README.md and demonstrate it in example/brasil_datetime_example.dart.
  • Record the change in CHANGELOG.md under the Unreleased section.

Testing

  • Ran dart format on modified files with no formatting issues detected.
  • Ran dart analyze with no analyzer issues reported.
  • Ran dart test and all tests passed (72 tests in total).
  • Ran dart run example/brasil_datetime_example.dart and the example produced the expected date/time lines, and git diff --check reported no issues.

Codex Task

@rubensdemelo
rubensdemelo marked this pull request as ready for review September 28, 2026 08:47
@rubensdemelo
rubensdemelo merged commit d0b7204 into main Sep 28, 2026
2 checks passed
@rubensdemelo
rubensdemelo deleted the codex/identify-missing-implementations branch September 28, 2026 08:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant