Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

AF SDK Reference

AFTimeZoneFormatProvider Constructor

  • Last UpdatedNov 18, 2025
  • 2 minute read
AFTimeZoneFormatProvider Constructor
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.

Version Information

AFSDK


See Also

In This Topic
TitleResults for “How to create a CRG?”Also Available in