[This is preliminary documentation and is subject to change.]
Creates an instance from a stream in the custom Noda Time format. The stream must be readable.

C# | Visual Basic | Visual C++ |
public static TzdbDateTimeZoneSource FromStream( Stream stream )
Public Shared Function FromStream ( _ stream As Stream _ ) As TzdbDateTimeZoneSource
public: static TzdbDateTimeZoneSource^ FromStream( Stream^ stream )

- stream (Stream)
- The stream containing time zone data

A TzdbDateTimeZoneSource providing information from the given stream.

The stream is not closed by this method, but will be read from without rewinding. A successful call will read the stream to the end.
See the user guide for instructions on how to generate an updated time zone database file from a copy of the (textual) tz database.

Exception | Condition |
---|---|
ArgumentNullException | stream is null. |
InvalidNodaDataException | The stream contains invalid time zone data, or data which cannot
be read by this version of Noda Time. |
IOException | Reading from the stream failed. |
InvalidOperationException | The supplied stream doesn't support reading. |
Assembly: NodaTime (Module: NodaTime.dll) Version: 1.2.0.0 (1.2.0)