IPofReaderReadDateTime Method |
Namespace: Tangosol.IO.Pof
DateTime ReadDateTime( int index )
Exception | Condition |
---|---|
InvalidOperationException | If the POF stream has already advanced past the desired property. |
IOException | If an I/O error occurs. |
This method will attempt to read both the date and time component from the POF stream. If the value in the stream does not contain both components, the corresponding values in the returned DateTime instance will be set to default values.
If the encoded value in the POF stream contains time zone information, this method will ignore time zone information and return a literal DateTime value, as read from the stream.