Send feedback on this topic.
Teradata.Client.Provider
Year Property (TdTimestampWithTimeZone)



Teradata.Client.Provider Namespace > TdTimestampWithTimeZone Structure : Year Property
The Year of the date contained in this instance of TdTimestampWithTimeZone is returned.
Syntax
'Declaration
 
Public ReadOnly Property Year As Integer
'Usage
 
Dim instance As TdTimestampWithTimeZone
Dim value As Integer
 
value = instance.Year
public int Year {get;}
public:
property int Year {
   int get();
}

Property Value

The year specified in the date.
Exceptions
ExceptionDescription
This instance is TdTimestampWithTimeZone.Null.
Remarks

The value that is returned represents the year of the date component. There is no consideration for the UTC Offset. For example, if the timestamp is "2007-12-31 23:40:00.000000 -08:00", the value of the Year property will be "2007". However, the UTC representation of the timestamp is "2008-01-01 07:40:00.000000".

No consideration is given to daylight savings time.

Requirements
ProductVersionsPlatforms
.NET2.1, 3.1, 6Windows, Linux, MacOS
.NET Framework4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8Windows
.NET Standard2.0Windows, Linux, MacOS
See Also

Reference

TdTimestampWithTimeZone Structure
TdTimestampWithTimeZone Members