((META (EMPTY-STRING title "Timestamp Key Type") (WORD role "manual") (TAG-SET tags ("#manual" "#meta" "#reference" "#zettel" "#zettelstore")) (WORD syntax "zmk") (ZID-SET back ("00001006030000" "00001012931200")) (ZID-SET backward ("00001006030000" "00001012931200")) (NUMBER box-number "1") (STRING copyright "(c) 2020-present by Detlef Stern ") (TIMESTAMP created "20210212135017") (ZID-SET forward ("00001006032000" "00001007706000")) (WORD lang "en") (EMPTY-STRING license "EUPL-1.2-or-later") (TIMESTAMP modified "20231030182858") (TIMESTAMP published "20231030182858") (WORD visibility "public")) (BLOCK (PARA (TEXT "Values of this type denote a point in time.")) (HEADING 1 () "allowed-values" "allowed-values" (TEXT "Allowed values")) (PARA (TEXT "Must be a sequence of 4, 6, 8, 10, 12, or 14 digits (") (FORMAT-QUOTE () (TEXT "0")) (TEXT "–") (FORMAT-QUOTE () (TEXT "9")) (TEXT ") (similar to an ") (LINK-ZETTEL () "00001006032000" (TEXT "Identifier")) (TEXT "), with the restriction that it must conform to the pattern ") (FORMAT-QUOTE () (TEXT "YYYYMMDDhhmmss")) (TEXT ".")) (UNORDERED (INLINE (TEXT "YYYY is the year,")) (INLINE (TEXT "MM is the month,")) (INLINE (TEXT "DD is the day,")) (INLINE (TEXT "hh is the hour,")) (INLINE (TEXT "mm is the minute,")) (INLINE (TEXT "ss is the second."))) (PARA (TEXT "If the sequence is less than 14 digits, they are expanded with the following rule:")) (UNORDERED (INLINE (TEXT "YYYY is expanded to YYYY0101000000")) (INLINE (TEXT "YYYYMM is expanded to YYYYMM01000000")) (INLINE (TEXT "YYYYMMDD is expanded to YYYYMMDD000000")) (INLINE (TEXT "YYYYMMDDhh is expanded to YYYYMMDDhh0000")) (INLINE (TEXT "YYYYMMDDhhmm is expanded to YYYYMMDDhhmm00"))) (HEADING 1 () "query-comparison" "query-comparison" (TEXT "Query comparison")) (PARA (LINK-ZETTEL () "00001007706000" (TEXT "Search values")) (TEXT " with more than 14 characters are truncated to contain exactly 14 characters.") (SOFT) (TEXT "Then, they are treated as timestamp data, as describe above, if they contain 4, 6, 8, 10, or 12 digits.")) (PARA (TEXT "Comparison is done through the string representation.") (SOFT) (TEXT "In case of the search operators ") (FORMAT-QUOTE () (TEXT "less")) (TEXT ", ") (FORMAT-QUOTE () (TEXT "not less")) (TEXT ", ") (FORMAT-QUOTE () (TEXT "greater")) (TEXT ", and ") (FORMAT-QUOTE () (TEXT "not greater")) (TEXT ", this is the same as a numerical comparison.")) (HEADING 1 () "sorting" "sorting" (TEXT "Sorting")) (PARA (TEXT "Sorting is done by comparing the possibly expanded values."))))