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

PI Powershell

ConvertFromAFRelativeTime.RelativeTime Property

  • Last UpdatedDec 15, 2025
  • 2 minute read
ConvertFromAFRelativeTime.RelativeTime Property

The PI Time string to convert to DateTime. For example:

"*" or "*-2h" or "*+1d"

Namespace:  OSIsoft.PowerShell
Assembly:  OSIsoft.PowerShell (in OSIsoft.PowerShell.dll) Version: 3.1.1.0 (3.1.1.466)

Syntax

[ParameterAttribute(Position = 0, Mandatory = true, ValueFromPipeline = true, 
	HelpMessage = "Relative time string")]
[ValidateNotNullOrEmptyAttribute]
public string RelativeTime { get; set; }
<ParameterAttribute(Position := 0, Mandatory := true, ValueFromPipeline := true, 
	HelpMessage := "Relative time string")>
<ValidateNotNullOrEmptyAttribute>
Public Property RelativeTime As String
	Get
	Set

Dim instance As ConvertFromAFRelativeTime
Dim value As String

value = instance.RelativeTime

instance.RelativeTime = value
public:
[ParameterAttribute(Position = 0, Mandatory = true, ValueFromPipeline = true, 
	HelpMessage = L"Relative time string")]
[ValidateNotNullOrEmptyAttribute]
property String^ RelativeTime {
	String^ get ();
	void set (String^ value);
}
[<ParameterAttribute(Position = 0, Mandatory = true, ValueFromPipeline = true, 
	HelpMessage = "Relative time string")>]
[<ValidateNotNullOrEmptyAttribute>]
member RelativeTime : string with get, set

Property Value

Type: String

See Also

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