Gemstone Common Library
Show/Hide TOC

# TimeTagBase Class

Represents the base class for alternate time-tag implementations.

## Definition

Namespace: Gemstone
Assembly: Gemstone.Common (in Gemstone.Common.dll) Version: 1.0.159 -- Release Build+a612c25bc0e1c87e5766544ec4650d2ebcfddcf4
C#
View Source Request Example

    [SerializableAttribute]
    public abstract class TimeTagBase : ISerializable,
    	IComparable, IComparable<TimeTagBase>, IComparable<DateTime>,
    	IEquatable<TimeTagBase>, IEquatable<DateTime>, IFormattable

VB
View Source Request Example

    <SerializableAttribute>
    Public MustInherit Class TimeTagBase
    	Implements ISerializable, IComparable, IComparable(Of TimeTagBase),
    	IComparable(Of DateTime), IEquatable(Of TimeTagBase), IEquatable(Of DateTime),
    	IFormattable

C++
View Source Request Example

    [SerializableAttribute]
    public ref class TimeTagBase abstract : ISerializable,
    	IComparable, IComparable<TimeTagBase^>, IComparable<DateTime>,
    	IEquatable<TimeTagBase^>, IEquatable<DateTime>, IFormattable

JavaScript
View Source Request Example

    Gemstone.TimeTagBase = function();

    Type.createClass(
    	'Gemstone.TimeTagBase',
    	null,
    	ISerializable,
    	IComparable,
    	IComparable`1,
    	IComparable`1,
    	IEquatable`1,
    	IEquatable`1,
    	IFormattable);

Inheritance
  Object TimeTagBase

Derived
  GemstoneNtpTimeTag
  GemstoneUnixTimeTag

Implements
  IComparable, IComparable TimeTagBase, IComparable DateTime, IEquatable TimeTagBase, IEquatable DateTime, IFormattable, ISerializable

## Constructors

TimeTagBase(Int64, Ticks) | Creates a new TimeTagBase, given standard .NET DateTime.
TimeTagBase(Int64, Decimal) | Creates a new TimeTagBase, given number base time (in ticks) and seconds since base time.
TimeTagBase(SerializationInfo, StreamingContext) | Creates a new TimeTagBase from serialization parameters.

## Properties

BaseDateOffsetTicks | Gets ticks representing the absolute minimum time of this time-tag implementation.
Value | Gets or sets number of seconds (including any fractional seconds) since base time.

## Methods

CompareTo(DateTime) | Compares the TimeTagBase with a DateTime.
CompareTo(Object) | Compares the TimeTagBase with the specified Object.
CompareTo(TimeTagBase) | Compares the TimeTagBase with another TimeTagBase.
Equals(DateTime) | Determines whether the specified DateTime is equal to the current TimeTagBase.
Equals(Object) | Determines whether the specified Object is equal to the current TimeTagBase. (Overrides ObjectEquals(Object))
Equals(TimeTagBase) | Determines whether the specified TimeTagBase is equal to the current TimeTagBase.
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object)
GetHashCode | Serves as a hash function for the current TimeTagBase. (Overrides ObjectGetHashCode)
GetObjectData | Populates a SerializationInfo with the data needed to serialize the target object.
GetType | Gets the Type of the current instance. (Inherited from Object)
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object)
ToDateTime | Returns standard .NET DateTime representation for time-tag.
ToString | Returns basic textual representation for time-tag. (Overrides ObjectToString)
ToString(IFormatProvider) | Returns textual representation for time-tag using the specified provider.
ToString(String) | Returns textual representation for time-tag in the specified format.
ToString(String, IFormatProvider) | Returns textual representation for time-tag in the specified format using the specified provider.

## Operators

Equality(DateTime, TimeTagBase) | Returns true if value1 is equal to value2.
Equality(TimeTagBase, TimeTagBase) | Returns true if value1 is equal to value2.
Equality(TimeTagBase, DateTime) | Returns true if value1 is equal to value2.
GreaterThan(DateTime, TimeTagBase) | Returns true if value1 is greater than value2.
GreaterThan(TimeTagBase, TimeTagBase) | Returns true if value1 is greater than value2.
GreaterThan(TimeTagBase, DateTime) | Returns true if value1 is greater than value2.
GreaterThanOrEqual(DateTime, TimeTagBase) | Returns true if value1 is greater than or equal to value2.
GreaterThanOrEqual(TimeTagBase, TimeTagBase) | Returns true if value1 is greater than or equal to value2.
GreaterThanOrEqual(TimeTagBase, DateTime) | Returns true if value1 is greater than or equal to value2.
Inequality(DateTime, TimeTagBase) | Returns true if value1 is not equal to value2.
Inequality(TimeTagBase, TimeTagBase) | Returns true if value1 is not equal to value2.
Inequality(TimeTagBase, DateTime) | Returns true if value1 is not equal to value2.
LessThan(DateTime, TimeTagBase) | Returns true if value1 is less than value2.
LessThan(TimeTagBase, TimeTagBase) | Returns true if value1 is less than value2.
LessThan(TimeTagBase, DateTime) | Returns true if value1 is less than value2.
LessThanOrEqual(DateTime, TimeTagBase) | Returns true if value1 is less than or equal to value2.
LessThanOrEqual(TimeTagBase, TimeTagBase) | Returns true if value1 is less than or equal to value2.
LessThanOrEqual(TimeTagBase, DateTime) | Returns true if value1 is less than or equal to value2.

## Fields

DefaultFormat | Default format for TimeTagBase implementations.

## Extension Methods

GetEnumValueOrDefault | Gets the enumeration constant for value, if defined in the enumeration, or a default value. (Defined by EnumExtensions)
GetEnumValueOrDefaultT | Gets the enumeration constant for this value, if defined in the enumeration, or a default value. (Defined by EnumExtensions)

## See Also

#### Reference

Gemstone Namespace