Returns the date-time value corresponding to the current moment.


GML Code Example


Returns: Real


Returns the date-time value of the current moment. The time returned is based on the default time zone for the system (ie: local time). You can change the base time zone to use with the function date_set_timezone()


GML Code Example

myhour = date_get_hour(date_current_datetime());
 myday = date_get_day(date_current_datetime());

This would set local variable myhour to the hour of the current time, and myday to the day of the current date.

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