Skip to content

Conversation

@Ling0152
Copy link
Collaborator

Add DATEw. format to replicate SAS format DATEw. , fixing #77
Also, the test cases and documentation of DATEw. are added.

@Ling0152 Ling0152 self-assigned this Nov 12, 2025
@Ling0152 Ling0152 closed this Nov 18, 2025
@Ling0152 Ling0152 reopened this Nov 18, 2025
@Ling0152 Ling0152 closed this Nov 18, 2025
@Ling0152 Ling0152 reopened this Nov 18, 2025
Copy link
Owner

@dbosak01 dbosak01 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Chen: A POSIXt is an R datetime stamp. It has a date component. I think you can format with your DATEw formats also. You can test it with Sys.time(). If you convert to a date first like this as.Date(Sys.time()) then you can format just like the Date class. For test cases, you can use as.POSIXct() and pass a text string.

Copy link
Owner

@dbosak01 dbosak01 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also add documentation to the "Formatting Strings" section of fmtr.R. There is already a section there concerning dates. Maybe you can add after that. Make it different than the documentation for fapply(). It helps to explain things in different ways.

Copy link
Owner

@dbosak01 dbosak01 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overall, great job. I like it a lot. I think we should do the SAS time formatting next.

@dbosak01
Copy link
Owner

MacOS action is broken. Not your fault. I'll review anyway.

@dbosak01 dbosak01 merged commit 016f651 into dbosak01:master Nov 24, 2025
8 of 9 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