Function EN Version 1.90

@Year

List Misc TimeDate

Syntax

@Year(TD1);
@Year(TDLIST1);
@Year(TD1;TEXTOPTIONS);
@Year(TDLIST1;TEXTOPTIONS);

Description

Returns the year of TD/TDLIST TD1/TDLIST1.

If the @Function is called with the parameter TEXT TEXTOPTIONS, it determines the return type.
F=As without TEXT TEXTOPTIONS (return data type = FLOAT/FLOATLIST)
A=Return data type = TEXT/TEXTLIST
A2=Return data type = TEXT/TEXTLIST; the text length is set to 2 characters
A4=Return data type = TEXT/TEXTLIST; the text length is set to 4 characters

Example: @Year(TD1)

TD1:=[30.09.93 14:35];
@Year(TD1);

returns 93

Example: @Year(TDLIST1)

TDLIST1:=[30.09.93 14:35]:[31.12.93 23:55:30];
@Year(TDLIST1);

returns 93:93

Example: @Year(TD1;TEXTOPTIONS)

TD1:=[30.09.93 14:35];
@Year(TD1;"A4");

returns "1993"

Example: @Year(TD1;TEXTOPTIONS)

TD1:=[30.09.93 14:35];
@Year(TD1;"A2");

returns "93"

Note : This text was machine-translated and may contain inaccuracies.