date_get_year

Returns the year corresponding to the datetime.

Syntax:

date_get_year(date);


Argument Description
date The datetime to check.


Returns: Real


Description

This function returns the year of the given datetime.


Example:

myyear = date_get_year(date_current_datetime());

This would set "myyear" to the current year.


Back: Date And Time
Next: date_hour_span
© Copyright YoYo Games Ltd. 2018 All Rights Reserved