0
にint型の形式で日付を変換するために、私は配列にXMLデータを解析しようとしていますが、問題は日付が以下のようにint型です。どのようにXML
<xml xmlns:s='uuid:RTYUI1-6DA3-11d1-A2A3-00AA00C14882'
xmlns:dt='uuid:DFR12345-65B3-11d1-A29F-00AA00C14882'
xmlns:rs='urn:schemas-microsoft-com:rowset'
xmlns:z='#RowsetSchema'>
<s:Schema id='RowsetSchema'>
<s:ElementType name='row' content='eltOnly'>
<s:AttributeType name='AdmissionDate' rs:number='1' rs:nullable='true' rs:maydefer='true' rs:writeunknown='true'>
<s:datatype dt:type='int' dt:maxLength='4' rs:precision='10' rs:fixedlength='true'/>
</s:AttributeType>
<s:extends type='rs:rowbase'/>
</s:ElementType>
</s:Schema>
<rs:data>
<z:row AdmissionDate='42569'/>
</rs:data>
私はここからxmlPasser.class.phpクラスを使用していますし、それは以下のような出力:
[rs:data] => Array
(
[z:row] => Array
(
[0] => Array
(
)
[1] => Array
(
)
[0_attr] => Array
(
[AdmissionDate] => 42569
)
...
あなたがやろうとしていますか? –
xmlファイルにUNIXのタイムスタンプなどが表示されますか? '42569'は本当に意味がありません – Vincent
@Vincent Yeah!私は同意するが、それをExcelにインポートすると、18/07/2016にフォーマットされます。 – snowflakes74