Click or drag to resize

TimeTag Class

Represents a historian time tag as number of seconds from the BaseDate.
Inheritance Hierarchy
SystemObject
  GSFTimeTagBase
    GSF.HistorianTimeTag

Namespace: GSF.Historian
Assembly: GSF.Historian (in GSF.Historian.dll) Version: 2.4.181-beta
Syntax
[SerializableAttribute]
public class TimeTag : TimeTagBase, IComparable<TimeTag>
View Source

The TimeTag type exposes the following members.

Constructors
 NameDescription
Public methodTimeTag(DateTime) Initializes a new instance of the TimeTag class.
Public methodTimeTag(Decimal) Initializes a new instance of the TimeTag class.
Public methodTimeTag(Int64) Initializes a new instance of the TimeTag class.
Protected methodTimeTag(SerializationInfo, StreamingContext) Creates a new TimeTag from serialization parameters.
Top
Properties
 NameDescription
Public propertyBaseDateOffsetTicks Gets ticks representing the absolute minimum time of this timetag implementation.
(Inherited from TimeTagBase)
Public propertyStatic memberNow Gets a TimeTag object that is set to the current date and time on this computer, expressed as the local time.
Public propertyStatic memberUtcNow Gets a TimeTag object that is set to the current date and time on this computer, expressed as the Coordinated Universal Time (UTC).
Public propertyValue Gets or sets number of seconds (including any fractional seconds) since base time.
(Inherited from TimeTagBase)
Top
Methods
 NameDescription
Public methodCompareTo(DateTime) Compares the TimeTagBase with a DateTime.
(Inherited from TimeTagBase)
Public methodCompareTo(Object) Compares the TimeTagBase with the specified Object.
(Inherited from TimeTagBase)
Public methodCompareTo(TimeTag) Compares this time tag instance to another time tag instance and returns an integer that indicates whether the value of this instance is less than, equal to, or greater than the value of the other time tag.
Public methodCompareTo(TimeTagBase) Compares the TimeTagBase with another TimeTagBase.
(Inherited from TimeTagBase)
Public methodEquals(DateTime) Determines whether the specified DateTime is equal to the current TimeTagBase.
(Inherited from TimeTagBase)
Public methodEquals(Object) Determines whether the specified Object is equal to the current TimeTagBase.
(Inherited from TimeTagBase)
Public methodEquals(TimeTagBase) Determines whether the specified TimeTagBase is equal to the current TimeTagBase.
(Inherited from TimeTagBase)
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 methodGetHashCode Serves as a hash function for the current TimeTagBase.
(Inherited from TimeTagBase)
Public methodGetObjectData Populates a SerializationInfo with the data needed to serialize the target object.
(Inherited from TimeTagBase)
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 Converts the specified string representation of a date and time to its TimeTag equivalent.
Public methodToDateTime Returns standard .NET DateTime representation for timetag.
(Inherited from TimeTagBase)
Public methodToString Returns the default text representation of TimeTag.
(Overrides TimeTagBaseToString)
Public methodToString(IFormatProvider) Returns textual representation for timetag using the specified provider.
(Inherited from TimeTagBase)
Public methodToString(String) Returns textual representation for timetag in the specified format.
(Inherited from TimeTagBase)
Public methodToString(String, IFormatProvider) Returns textual representation for timetag in the specified format using the specified provider.
(Inherited from TimeTagBase)
Top
Fields
 NameDescription
Public fieldStatic memberBaseDate Represents the base DateTime (01/01/1995) for TimeTag.
Public fieldStatic memberMaxValue Represents the largest possible value of TimeTag.
Public fieldStatic memberMinValue Represents the smallest possible value of TimeTag.
Top
Extension Methods
 NameDescription
Public Extension MethodGetEnumValueOrDefault Gets the enumeration constant for value, if defined in the enumeration, or a default value.
(Defined by EnumExtensions)
Public Extension MethodGetEnumValueOrDefaultT Gets the enumeration constant for this value, if defined in the enumeration, or a default value.
(Defined by EnumExtensions)
Top
See Also