ユーザー関数 parse_dtformat は、ISO 8601 を解釈し、配列に格納して返す。解釈には、正規表現を利用した。 139: /** 140: * ISO 8601(RFC 3339)形式のタイムスタンプを解釈する 141: * @param string $str ISO 8601(RFC 3339)形式テキスト 142: * @return string 解釈結果を格納する配列/年,月,月,日,時,分,秒の順に格納 143: * NULL:エラー 144: */ 145: function parse_dtformat($str) { 146: $pat = '/(\d{4})(?:-(\d{2})(?:-(\d{2})(?:T(\d{2}):(\d{2})(?::(\d{2})(?:\.(\d+))?)?(Z|([+