Noda Time
ForSystemDefault Method
NamespacesNodaTime.TimeZonesBclDateTimeZoneForSystemDefault()()()()

[This is preliminary documentation and is subject to change.]

Returns a time zone converted from the BCL representation of the system local time zone.
Declaration Syntax
C#Visual BasicVisual C++
public static BclDateTimeZone ForSystemDefault()
Public Shared Function ForSystemDefault As BclDateTimeZone
public:
static BclDateTimeZone^ ForSystemDefault()
Return Value
A BclDateTimeZone wrapping the "local" (system) time zone as returned by Local.
Remarks

This method is approximately equivalent to calling GetSystemDefault()()()() with an implementation that wraps BclDateTimeZoneSource (e.g. Bcl), with the exception that it will succeed even if the current local time zone was not one of the set of system time zones captured when the source was created (which, while highly unlikely, might occur either because the local time zone is not a system time zone, or because the system time zones have themselves changed).

This method will retain a reference to the returned BclDateTimeZone, and will attempt to return it if called repeatedly (assuming that the local time zone has not changed) rather than creating a new instance, though this behaviour is not guaranteed.

Assembly: NodaTime (Module: NodaTime.dll) Version: 1.2.0.0 (1.2.0)