Click or drag to resize
Grid Solutions Framework

TargetTimeUnit Class

Represents a time unit that can be targeted in OpenHistorian Grafana functions.
Inheritance Hierarchy
SystemObject
  GrafanaAdapters.FunctionsTargetTimeUnit

Namespace: GrafanaAdapters.Functions
Assembly: GrafanaAdapters (in GrafanaAdapters.dll) Version: 2.4.181-beta
Syntax
public class TargetTimeUnit
View Source

The TargetTimeUnit type exposes the following members.

Constructors
 NameDescription
Public methodTargetTimeUnitInitializes a new instance of the TargetTimeUnit class
Top
Methods
 NameDescription
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
Public methodStatic memberFromTimeUnits Scales the specified time, in the specified units, to a time in seconds.
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Public methodStatic memberParse Tries to parse a string representation of a time unit to a TargetTimeUnit.
Public methodToStringReturns a string that represents the current object.
(Overrides ObjectToString)
Public methodStatic memberToTimeUnits Scales a time, in seconds, to the specified units.
Top
Fields
 NameDescription
Public fieldFactor Gets or sets the factor by which to scale the base time unit.
Public fieldUnit Gets or sets the base time unit.
Top
Remarks
This class is designed to handle various forms of time units and provides a way to parse time units from strings.
See Also