Module formats

Module formats 

Source
Expand description

SAS format string classification using regex-based detection.

SAS variables carry format strings (e.g. DATE9, DATETIME22.3, TIME8) that determine how raw numeric values should be interpreted. This module classifies those format strings into ReadStatVarFormatClass variants (Date, DateTime, Time, and their sub-second precision variants), enabling correct Arrow type mapping.

Supports all 118+ SAS date/time/datetime formats including ISO 8601 variants, national language (NL*) formats, and precision-based datetime/time formats.

Staticsยง

RE_DATE ๐Ÿ”’
RE_DATETIME ๐Ÿ”’
RE_DATETIME_WITH_MICRO ๐Ÿ”’
RE_DATETIME_WITH_MILLI ๐Ÿ”’
RE_DATETIME_WITH_NANO ๐Ÿ”’
RE_TIME ๐Ÿ”’
RE_TIME_WITH_MICRO ๐Ÿ”’

Functionsยง

match_var_format ๐Ÿ”’
Classifies a SAS format string into a ReadStatVarFormatClass.