%PDF- %PDF-
Direktori : /usr/local/share/emacs/27.2/lisp/calendar/ |
Current File : //usr/local/share/emacs/27.2/lisp/calendar/iso8601.elc |
;ELC ;;; Compiled ;;; in Emacs version 27.2 ;;; with all optimizations. ;;; This file uses dynamic docstrings, first added in Emacs 19.29. ;;; This file does not contain utf-8 non-ASCII characters, ;;; and so can be loaded in Emacs versions earlier than 23. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; (byte-code "\300\301!\210\300\302!\207" [require time-date cl-lib] 2) #@16 (fn REGEXPS) (defalias 'iso8601--concat-regexps #[257 "\300\301\302#\207" [mapconcat #[257 "\300\301\302\303#\304Q\207" ["\\(?:" replace-regexp-in-string "(" "(?:" "\\)"] 6 "\n\n(fn REGEXP)"] "\\|"] 5 (#$ . 478)]) (defconst iso8601--year-match "\\([+-]?[0-9][0-9][0-9][0-9]\\)") (defconst iso8601--full-date-match "\\([+-]?[0-9][0-9][0-9][0-9]\\)-?\\([0-9][0-9]\\)-?\\([0-9][0-9]\\)") (defconst iso8601--without-day-match "\\([+-]?[0-9][0-9][0-9][0-9]\\)-\\([0-9][0-9]\\)") (defconst iso8601--outdated-date-match "--\\([0-9][0-9]\\)-?\\([0-9][0-9]\\)") (defconst iso8601--week-date-match "\\([+-]?[0-9][0-9][0-9][0-9]\\)-?W\\([0-9][0-9]\\)-?\\([0-9]\\)?") (defconst iso8601--ordinal-date-match "\\([+-]?[0-9][0-9][0-9][0-9]\\)-?\\([0-9][0-9][0-9]\\)") (defconst iso8601--date-match (byte-code "\306 \n\f \257!\207" [iso8601--year-match iso8601--full-date-match iso8601--without-day-match iso8601--outdated-date-match iso8601--week-date-match iso8601--ordinal-date-match iso8601--concat-regexps] 7)) (defconst iso8601--time-match "\\([0-9][0-9]\\):?\\([0-9][0-9]\\)?:?\\([0-9][0-9]\\)?[.,]?\\([0-9]*\\)") (defconst iso8601--zone-match "\\(Z\\|\\([+-]\\)\\([0-9][0-9]\\):?\\([0-9][0-9]\\)?\\)") (defconst iso8601--full-time-match (byte-code "\302\303\304\305#\306 \307\260\207" [iso8601--time-match iso8601--zone-match "\\(" replace-regexp-in-string "(" "(?:" "\\)\\(" "\\)?"] 5)) (defconst iso8601--combined-match (byte-code "\303\304\305\306\307 #\310\n\311\260\207" [iso8601--date-match iso8601--time-match iso8601--zone-match "\\(" "\\)\\(?:T\\(" replace-regexp-in-string "(" "(?:" "\\)\\(" "\\)?\\)?"] 7)) (defconst iso8601--duration-full-match "P\\([0-9]+Y\\)?\\([0-9]+M\\)?\\([0-9]+D\\)?\\(T\\([0-9]+H\\)?\\([0-9]+M\\)?\\([0-9]+S\\)?\\)?") (defconst iso8601--duration-week-match "P\\([0-9]+\\)W") (defconst iso8601--duration-combined-match (concat "P" iso8601--combined-match)) (defconst iso8601--duration-match (byte-code "\303 \nE!\207" [iso8601--duration-full-match iso8601--duration-week-match iso8601--duration-combined-match iso8601--concat-regexps] 4)) #@358 Parse an ISO 8601 date/time string and return a `decode-time' structure. The ISO 8601 date/time strings look like "2008-03-02T13:47:30", but shorter, incomplete strings like "2008-03-02" are valid, as well as variants like "2008W32" (week number) and "2008-234" (ordinal day number). See `decode-time' for the meaning of FORM. (fn STRING &optional FORM) (defalias 'iso8601-parse #[513 "\300!\204 \301\302\"\207\303\304\"\303\305\"\303\306\"\307!\203= \310\"AA\211\3058\240\266A\211A@\240\266\211@\240\266\203M \311\233\211\312!\313_\240\266\207" [iso8601-valid-p signal wrong-type-argument match-string 1 2 3 iso8601-parse-date iso8601-parse-time 8 iso8601-parse-zone 60] 11 (#$ . 2562)]) #@82 Parse STRING (in ISO 8601 format) and return a `decode-time' value. (fn STRING) (defalias 'iso8601-parse-date #[257 "\306\"\203 \307\310\311!\"\207\306 \"\203, \307\310\311\312\313\"!\314\312\315\"\316\312\317\"&\207\306\n\"\203@ \307\310\311!\314\312\315\"$\207\306\"\203U \307\314\312\313\"\316\312\315\"$\207\306\f\"\203\367 \311!\311\312\315\"!\312\317\"\205r \311\312\317\"!\320\321\307\310\314\313\316\322&!!\3238\262\211\324U\203\217 \325\202\220 \211\317\\\326\325_\206\233 \324[#\211\313W\203\273 S\262\211\327!\203\264 \330\202\265 \331\\\262\202\340 \211\327!\203\307 \330\202\310 \331V\203\340 \211\327!\203\330 \330\202\331 \331Z\262T\262\332\"\307\310\314\3228\316\3178&\262\207\306 \"\203\311\312\313\"!\311\312\315\"!\332\"\307\310\314\3228\316\3178&\207\333\334\"\207" [iso8601--year-match iso8601--full-date-match iso8601--without-day-match iso8601--outdated-date-match iso8601--week-date-match iso8601--ordinal-date-match iso8601--match iso8601--decoded-time :year string-to-number match-string 1 :month 2 :day 3 decode-time iso8601--encode-time 4 6 0 7 + date-leap-year-p 366 365 date-ordinal-to-time signal wrong-type-argument] 16 (#$ . 3284)]) #@236 Parse STRING, which should be an ISO 8601 time string. The return value will be a `decode-time' structure with just the hour/minute/seconds/zone fields filled in. See `decode-time' for the meaning of FORM. (fn STRING &optional FORM) (defalias 'iso8601-parse-time #[513 "\302\"\204\f \303\304\"\207\305\306\"\305\307\"\302 \"\204\"