step-examples/12-1b-header/Lh011.stp
Sources
- 06-nist-sfa S014, 16-iso-spec N025
Description
FILE_NAME's timestamp attribute must be ISO-8601 (`YYYY-MM-DDThh:mm:ss[±hh:mm]`). Producers emit RFC 822 dates, locale-formatted (`27/12/2003 11:57`, `08/13/2014`), epoch integers, or empty strings.
Reproducer recipe
`FILE_NAME('a.stp','27/12/2003 11:57',..);`
Expected kernel behavior
Warn and accept: lexically valid as STRING; semantic layer warns; do not reject (block import) on non-conformant timestamp.
Notes
**See also**: Lh012, Lh013. Synonyms: "FILE_NAME timestamp not ISO-8601", "RFC 822 date in STEP header", "STEP timestamp 27/12/2003 format", "epoch integer in FILE_NAME timestamp", "locale-formatted date in header".
Expected validation
occt=empty/empty gmsh=empty ifc=schema_n/a
Byte assertions
matches(rb"FILE_NAME\([^;]*'[0-9]{1,2}/[0-9]{1,2}/[0-9]{2,4}")
Tier-3 assertions
shape_null == True
Cross-references
Live oracle output
No live oracle data — run _run_corpus to populate.
Fixture content
Show fixture bytes (with defect highlighting)
1ISO-10303-21; 2/* Lh011: FILE_NAME timestamp is locale-formatted (DD/MM/YYYY HH:MM), not ISO-8601 */ 3/* ISO 10303-21 §8: timestamp must be ISO-8601 form YYYY-MM-DDThh:mm:ss */ 4/* DEFECT: '27/12/2003 11:57' is a locale-formatted date, not ISO-8601 */ 5/* File parses (STRING is lexically valid) but semantic layer must warn */ 6/* Produced by older CAD exporters that use system locale date formatting */ 7HEADER; 8FILE_DESCRIPTION(('Lh011: FILE_NAME timestamp not in ISO-8601 form'),'2;1'); 9/* DEFECT: timestamp '27/12/2003 11:57' is DD/MM/YYYY HH:MM format, not ISO-8601 */ 10FILE_NAME('Lh011.stp','27/12/2003 11:57',(''),(''),'cad-research-suite','',''); 11FILE_SCHEMA(('AUTOMOTIVE_DESIGN')); 12ENDSEC; 13DATA; 14#1=CARTESIAN_POINT('origin',(0.,0.,0.)); 15#2=CARTESIAN_POINT('corner',(1.,1.,0.)); 16#3=DIRECTION('xdir',(1.,0.,0.)); 17#4=DIRECTION('zdir',(0.,0.,1.)); 18#5=GEOMETRIC_CURVE_SET('non-iso8601-timestamp-shape',(#1,#2)); 19ENDSEC; 20END-ISO-10303-21;