Skip to content

feat(date): add -R, -I flags and %N format#231

Merged
chaliy merged 1 commit intomainfrom
claude/bashkit-bash-compatibility-BsDKD
Feb 23, 2026
Merged

feat(date): add -R, -I flags and %N format#231
chaliy merged 1 commit intomainfrom
claude/bashkit-bash-compatibility-BsDKD

Conversation

@chaliy
Copy link
Contributor

@chaliy chaliy commented Feb 23, 2026

Summary

  • Add -R/--rfc-2822 flag for RFC 2822 formatted date output
  • Add -I/--iso-8601 flag with precision support (date/hours/minutes/seconds)
  • Add %N format specifier for nanoseconds (9-digit zero-padded)
  • Removes 3 skip markers from date spec tests

Test plan

  • Unit tests for -R, -I, %N, and expand_nanoseconds helper
  • Spec tests date_rfc_format, date_iso_flag, date_nanoseconds now pass
  • Full test suite passes (cargo test --all-features)
  • cargo clippy and cargo fmt clean

Implement three missing date features:
- `-R`/`--rfc-2822`: output RFC 2822 formatted date
- `-I`/`--iso-8601`: output ISO 8601 date (supports date/hours/minutes/seconds)
- `%N`: nanoseconds format specifier (9-digit zero-padded)

Removes 3 skip markers from date spec tests.
@chaliy chaliy merged commit 77f5477 into main Feb 23, 2026
16 checks passed
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.

2 participants