ParseTime(String) Method
Returns an AFTime object for a given time evaluated with respect to the current time.
Definition
Namespace: GHost.GSharp.Analytics.AF
Assembly: GHost.GSharp.Analytics.AF (in GHost.GSharp.Analytics.AF.dll) Version: 1.2.0.0 (1.2.44.3)
C#
public static AFTime ParseTime(
string time
)
VB
Public Shared Function ParseTime (
time As String
) As AFTime
Parameters
- String
- A timestamp string (in time/date, absolute or relative PI time formats).
Return Value
AFTime
AFTime object corresponding to the specified time.
Example
C#
AFTime result = new AFTime();
result = ParseTime("14-Dec-23")
result = ParseTime("t"); //The specified absolute PI time "t" is evaluated with respect to the current time.
result = ParseTime("*-1h"); //The specified relative PI time "*-1h" is evaluated with respect to the current time.
See Also
Reference
FunctionLibrary Class
ParseTime Overload
GHost.GSharp.Analytics.AF Namespace