Click or drag to resize
Grid Solutions Framework

TargetTimeUnitParse Method

Tries to parse a string representation of a time unit to a TargetTimeUnit.

Namespace: GrafanaAdapters.Functions
Assembly: GrafanaAdapters (in GrafanaAdapters.dll) Version: 2.4.218-beta
Syntax
public static (TargetTimeUnit , bool ) Parse(
	string value
)
View Source

Parameters

value  String
The string representation of the time unit to parse.

Return Value

ValueTupleTargetTimeUnit, Boolean
Tuple containing the TargetTimeUnit and a flag indicating if the parse was successful.
Remarks
If this method succeeds, return value contains the TargetTimeUnit equivalent of the time unit contained in value; otherwise, null if the conversion failed. The conversion fails if the value is null or is not in the correct format.
See Also