AFTimeZoneFormatProvider Constructor
- Last UpdatedNov 18, 2025
- 2 minute read
- PI System
- AF SDK 2024 R2
- Developer
Creates a new instance of the AFTimeZoneFormatProvider.
Namespace: OSIsoft.AF.Time
Assembly: OSIsoft.AFSDK (in OSIsoft.AFSDK.dll) Version: 3.1.1.1182
Syntax
public AFTimeZoneFormatProvider( AFTimeZone timeZone, IFormatProvider provider = null )
Public Sub New ( timeZone As AFTimeZone, Optional provider As IFormatProvider = Nothing ) Dim timeZone As AFTimeZone Dim provider As IFormatProvider Dim instance As New AFTimeZoneFormatProvider(timeZone, provider)
public: AFTimeZoneFormatProvider( AFTimeZone^ timeZone, IFormatProvider^ provider = nullptr )
new : timeZone : AFTimeZone * ?provider : IFormatProvider (* Defaults: let _provider = defaultArg provider null *) -> AFTimeZoneFormatProvider
Parameters
- timeZone
- Type: OSIsoft.AF.TimeAFTimeZone
Initializes the TimeZone property with the AFTimeZone to be used when parsing time strings. - provider (Optional)
- Type: SystemIFormatProvider
Initializes the Provider property with an object that supplies culture-specific formatting information. This provider will be used when parsing a time string.
If , then CurrentCulture will be used first when parsing the time string. If the parsing fails in this case, then a second attempt is made to parse using InvariantCulture.