Referencia de funciones
GameMaker Studio · GML · Setup & session
gmda_getDate
Returns the last date/time string the client cached.
Synchronous (returns directly)
Signature
gmda_getDate() -> stringWhat it does
Reads the cached date string without recomputing it. It is whatever gmda_refreshDate() last produced.
Parameters
This function takes no parameters.
How to call it
Read it any time after at least one call to gmda_refreshDate().
Returns: The cached date string, formatted "YYYY-M-D H:M:S" (empty until gmda_refreshDate() runs).
Example
draw_text(8, 8, "as of " + gmda_getDate());Use cases
- Reuse a timestamp you already computed this frame without rebuilding the string.