openPDC Historian Help
Parse Method (timetag)
NamespacesTVA.HistorianTimeTagParse(String)
Converts the specified string representation of a date and time to its TimeTag equivalent.
Declaration Syntax
C#Visual BasicVisual C++
public static TimeTag Parse(
	string timetag
)
Public Shared Function Parse ( _
	timetag As String _
) As TimeTag
public:
static TimeTag^ Parse(
	String^ timetag
)
Parameters
timetag (String)
A string containing the date and time to convert.
Return Value
A TimeTag object.
Remarks
timetag can be specified in one of the following format:
Time FormatFormat Description
12-30-2000 23:59:59
Absolute date and time.
*
Evaluates to UtcNow.
*-20s
Evaluates to 20 seconds before UtcNow.
*-10m
Evaluates to 10 minutes before UtcNow.
*-1h
Evaluates to 1 hour before UtcNow.
*-1d
Evaluates to 1 day before UtcNow.

Assembly: TVA.Historian (Module: TVA.Historian) Version: 1.0.33.39252