Class DateTimeLiteral
Represents an instant in time with nanosecond precision using the syntax of golang's RFC3339 Nanosecond variant
Namespace: InfluxDB.Client.Api.Domain
Assembly: InfluxDB.Client.dll
Syntax
public class DateTimeLiteral : Expression, IEquatable<Expression>, IEquatable<DateTimeLiteral>
Constructors
DateTimeLiteral(String, Nullable<DateTime>)
Initializes a new instance of the DateTimeLiteral class.
Declaration
public DateTimeLiteral(string type = null, DateTime? value = null)
Parameters
Type | Name | Description |
---|---|---|
System.String | type | Type of AST node. |
System.Nullable<DateTime> | value | value. |
Properties
Type
Type of AST node
Declaration
public string Type { get; set; }
Property Value
Type | Description |
---|---|
System.String | Type of AST node |
Value
Gets or Sets Value
Declaration
public DateTime? Value { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<DateTime> |
Methods
Equals(DateTimeLiteral)
Returns true if DateTimeLiteral instances are equal
Declaration
public bool Equals(DateTimeLiteral input)
Parameters
Type | Name | Description |
---|---|---|
DateTimeLiteral | input | Instance of DateTimeLiteral to be compared |
Returns
Type | Description |
---|---|
System.Boolean | Boolean |
Equals(Object)
Returns true if objects are equal
Declaration
public override bool Equals(object input)
Parameters
Type | Name | Description |
---|---|---|
System.Object | input | Object to be compared |
Returns
Type | Description |
---|---|
System.Boolean | Boolean |
Overrides
GetHashCode()
Gets the hash code
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
System.Int32 | Hash code |
Overrides
ToJson()
Returns the JSON string presentation of the object
Declaration
public override string ToJson()
Returns
Type | Description |
---|---|
System.String | JSON string presentation of the object |
Overrides
ToString()
Returns the string presentation of the object
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String | String presentation of the object |
Overrides
Implements
IEquatable<>
IEquatable<>