GetYear

This function evaluates to the year of the given datetime.

Description

The year, expressed as a number in units of "NONE".

Type

NUMERIC

Arguments

Type

Meaning

1

DATETIME

the datetime

Evaluation

The datetime argument; which may be specified symbolically, is converted into an actual datetime. Then, the year within which this time is, is determined. This function requires that the datetime be at least partially specified with a valid year, E.g. @"Year 2010" or @"Current Year" will work.

Comments

As elsewhere in RiverWare, 24:00 hours is considered to be the day which is ending, and 00:00 hours is considered to be the day which is just beginning.

 
GetYear(@"24:00 December 31, 1999")
 
1999.0