Table of Contents

Class Format.DateTime

Inheritance
Format.DateTime
Implements
Inherited Members
Namespace
TabularEditor.SemanticBridge.Platforms.Databricks.MetricView
Assembly
SemanticBridge.dll

DateTime format specification

public record Format.DateTime : Format.Date, IEquatable<Format>, IEquatable<Format.Date>, IEquatable<Format.DateTime>
Extension Methods

Remarks

When working with a DateTime type, at least one of DateFormat or TimeFormat must specify a value other than NoDate or NoTime.

Constructors

DateTime()

public DateTime()

DateTime(DateTime)

[SetsRequiredMembers]
protected DateTime(Format.DateTime original)

Parameters

Type Name Description
Format.DateTime original

Properties

EqualityContract

protected override Type EqualityContract { get; }

Property Value

Type Description
Type

TimeFormat

Time format specification

public required Format.TimeFormatSpec TimeFormat { get; set; }

Property Value

Type Description
Format.TimeFormatSpec

Type

The type of format (i.e., "number", "currency", "percentage", "byte", "date", "datetime")

public override Format.FormatType Type { get; }

Property Value

Type Description
Format.FormatType

Methods

Equals(object?)

public override bool Equals(object? obj)

Parameters

Type Name Description
object obj

Returns

Type Description
bool

Equals(Date?)

public override sealed bool Equals(Format.Date? other)

Parameters

Type Name Description
Format.Date other

Returns

Type Description
bool

Equals(DateTime?)

public virtual bool Equals(Format.DateTime? other)

Parameters

Type Name Description
Format.DateTime other

Returns

Type Description
bool

GetHashCode()

public override int GetHashCode()

Returns

Type Description
int

PrintMembers(StringBuilder)

protected override bool PrintMembers(StringBuilder builder)

Parameters

Type Name Description
StringBuilder builder

Returns

Type Description
bool

ToString()

public override string ToString()

Returns

Type Description
string

Operators

operator ==(DateTime?, DateTime?)

public static bool operator ==(Format.DateTime? left, Format.DateTime? right)

Parameters

Type Name Description
Format.DateTime left
Format.DateTime right

Returns

Type Description
bool

operator !=(DateTime?, DateTime?)

public static bool operator !=(Format.DateTime? left, Format.DateTime? right)

Parameters

Type Name Description
Format.DateTime left
Format.DateTime right

Returns

Type Description
bool