current_second

Returns the second corresponding to the current moment.

Syntax:

current_second;


Returns: Real


Description

This read only variable will return the seconds that correspond to the current moment.


Example:

draw_text(32, 32, "The time is " + string(current_hour) + ":" + string(current_minute) + "." + string(current_second));

The above code would draw the current international time on the screen.


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