You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the 2024-10-09 ETSC meeting, we discussed the proposal to create a library for handling all date and time congruence checks across applications in the EDI ecosystem (e.g. ECC, ezEML, and DEX). The goal of this library is to reduce redundant code, simplify maintenance, and ensure consistency in handling date and time operations.
While we will eventually want a library to cover all types of congruence checks, the architecture for such a comprehensive solution is beyond the scope of this proposal. However, the library should be designed in a way that allows for future integration into a larger library if needed.
@rogerdahl , @jon-ide - what are your thoughts? How could DEX and ezEML benefit from this library? Are there any specific date and time processing requirements we should consider in the design?
The text was updated successfully, but these errors were encountered:
Based on the list of unique dateTime formats provided by @jon-ide (unique_formats.txt), I recommend following a more conservative pattern that extends commonly found non-preferred formats with the following criteria:
year formats should require a full four-digit year (two-digit years are ambiguous)
day formats may either be two-digits for "day of month" or three-digits for "day of year"
month formats may either be two-digits or three-character abbreviations
case of format strings may vary
With these criteria (and as a first pass), the additions I would recommend (but may be subject to removal for technical reasons) are:
MM/DD/YYYY
mm/dd/yyyy
yyyy-MM-dd HH:mm:ss
dd-mon-yyyy (mon = month abbr)
yyyy-mm-dd
yyyy
DD-MON-YYYY (MON = month abbr)
yyyy-MM-dd
dd-mmm-yyyy (mmm = month abbr)
DD/MM/YYYY
HH:MM:SS
HHMM
yyyy-mm-dd HH:MM:SS
mm-dd-yyyy
YYYY-MM-DD HH:MM:SS
YYYY-MM-DD HH:MM
MM-DD-YYYY
yyyy/mm/dd
mm/dd/YYYY
DD-WWW-YYYY (WWW = month abbr)
*DeX likely has other constraints since they must be loaded into a data frame and made available for filtering.
We discussed the potential benefits of using a library for both ezEML and DEX. For ezEML, a straightforward replacement for the existing validation engine could be implemented. However, DEX would require more complex adjustments. Specifically, we'd need to convert the supported date-time format strings into a format compatible with Python's Pandas library for parsing date and time values.
In the 2024-10-09 ETSC meeting, we discussed the proposal to create a library for handling all date and time congruence checks across applications in the EDI ecosystem (e.g. ECC, ezEML, and DEX). The goal of this library is to reduce redundant code, simplify maintenance, and ensure consistency in handling date and time operations.
While we will eventually want a library to cover all types of congruence checks, the architecture for such a comprehensive solution is beyond the scope of this proposal. However, the library should be designed in a way that allows for future integration into a larger library if needed.
@rogerdahl , @jon-ide - what are your thoughts? How could DEX and ezEML benefit from this library? Are there any specific date and time processing requirements we should consider in the design?
The text was updated successfully, but these errors were encountered: