date_days_in_year

Returns the number of days in the year of the given datetime.

Syntax:

date_days_in_year(date);


Argument Description
date The date to use.


Returns: Real


Description

With this function you can get the number of days that the given year has, returning 365 for a normal year, and 366 for a leap year.


Example:

days = date_days_in_year(date_current_datetime());

This would set "days" to the number of days in the current year.


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