date_days_in_year

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

Syntax:

GML Code Example

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:

GML Code Example

days = date_days_in_year(date_current_datetime());

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





No Examples Submitted

Does this page need better examples? Be the first to Submit

No Edits Suggested

Is this page unclear or not descriptive enough? Suggest an edit to the page and with enough upvotes your changes will be made.

No Questions Have Been Ask

Do you have a question about this page? Ask it Here