Click or drag to resize

TimeTagParse Method

Converts the specified string representation of a date and time to its TimeTag equivalent.

Namespace: GSF.Historian
Assembly: GSF.Historian (in GSF.Historian.dll) Version: 2.4.181-beta
Syntax
public static TimeTag Parse(
	string timetag
)
View Source

Parameters

timetag  String
A string containing the date and time to convert.

Return Value

TimeTag
A TimeTag object.
Remarks
timetag can be specified in one of the following format:
Time FormatFormat Description
12-30-2000 23:59:59Absolute date and time.
*Evaluates to UtcNow.
*-20sEvaluates to 20 seconds before UtcNow.
*-10mEvaluates to 10 minutes before UtcNow.
*-1hEvaluates to 1 hour before UtcNow.
*-1dEvaluates to 1 day before UtcNow.
See Also