Functions by Category Functions by Alphabetical list
Year([Optional Datetime]) |  |
This function returns the year of the current bar, or from the passed in datetime. The returned number is 4 digits, for example 1992, 2004. This function can be used in chart and indicator objects. Examples: Year; #returns the year of the current bar
Year(Ago(DateTime,15)); #returns year of the bar 15 bars ago
Note: Because this function has an optional parameter, it is sometimes necessary to specify the parenthesis on the function when passing no parameters, for example use Year() instead of Year. Related functions: DateTime , Time , Second , Minute , Hour , Month , DayOfWeek , DayOfMonth , DayOfYear , WeekOfYear , NewHour , NewDay , NewWeek , NewMonth , NewYear , Monday , Tuesday , Wednesday , Thursday , Friday , FormatDateTime , ValidateDateTime , AddDeltaDHMS , AddDeltaYM , DeltaDateTime
|