08.11.2012 Views

Designing Games with Game Maker - YoYo Games

Designing Games with Game Maker - YoYo Games

Designing Games with Game Maker - YoYo Games

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

date_get_hour(date) Returns the hour corresponding to the date.<br />

date_get_minute(date) Returns the minute corresponding to the date.<br />

date_get_second(date) Returns the second corresponding to the date.<br />

date_get_weekday(date) Returns the day of the week corresponding to<br />

the date.<br />

date_get_day_of_year(date) Returns the day of the year corresponding<br />

to the date.<br />

date_get_hour_of_year(date) Returns the hour of the year<br />

corresponding to the date.<br />

date_get_minute_of_year(date) Returns the minute of the year<br />

corresponding to the date.<br />

date_get_second_of_year(date) Returns the second of the year<br />

corresponding to the date.<br />

date_year_span(date1,date2) Returns the number of years between the<br />

two dates. It reports incomplete years as a fraction.<br />

date_month_span(date1,date2) Returns the number of months between<br />

the two dates. It reports incomplete months as a fraction.<br />

date_week_span(date1,date2) Returns the number of weeks between the<br />

two dates. It reports incomplete weeks as a fraction.<br />

date_day_span(date1,date2) Returns the number of days between the<br />

two dates. It reports incomplete days as a fraction.<br />

date_hour_span(date1,date2) Returns the number of hours between the<br />

two dates. It reports incomplete hours as a fraction.<br />

date_minute_span(date1,date2) Returns the number of minutes<br />

between the two dates. It reports incomplete minutes as a fraction.<br />

date_second_span(date1,date2) Returns the number of seconds<br />

between the two dates. It reports incomplete seconds as a fraction.<br />

date_compare_datetime(date1,date2) Compares the two date-time<br />

values. Returns -1, 0, or 1 depending on whether the first is smaller, equal, or<br />

larger than the second value.<br />

date_compare_date(date1,date2) Compares the two date-time values<br />

only taking the date part into account. Returns -1, 0, or 1 depending on<br />

whether the first is smaller, equal, or larger than the second value.<br />

date_compare_time(date1,date2) Compares the two date-time values<br />

only taking the time part into account. Returns -1, 0, or 1 depending on<br />

whether the first is smaller, equal, or larger than the second value.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!