date_current_datetime

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

Syntax:

date_current_datetime();


Returns: Real


Description

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()


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.


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