Skip to content

Latest commit

 

History

History
31 lines (21 loc) · 5.89 KB

File metadata and controls

31 lines (21 loc) · 5.89 KB

date()

date() has two purposes.

First, it may indicate that a value must be a {self.name} to be valid. To do this, it must be an argument to a line() and have a header argument.

Alternatively, it may generate a date from a string. Generally, {self.name}() recognizes {self.name}s without needing a format string.

Data signatures
date( date: $${\color{green}None}$$ ǁ $${\color{green}datetime}$$ ǁ $${\color{green}date}$$ )
date( date string: $${\color{green}None}$$ ǁ $${\color{green}str}$$, [format: $${\color{green}str}$$] )
Call signatures
date( date: Header ǁ Variable ǁ Function ǁ Reference )
date( date string: Term ǁ Header ǁ Variable ǁ Function ǁ Reference, [format: Term ǁ Header ǁ Function ǁ Variable ǁ Reference] )
Purpose Value
Main focus date() produces a calculated value and decides matches
Type Date is a line() schema type
Context Qualifier
Match qualifiers onmatch, notnone, strict, distinct
Value qualifiers onmatch, notnone

[Back to index]