Skip to content

GetLastCommandTime()

ts
// in class: Session
function GetLastCommandTime(): Date;

This function returns the timestamp of the last command that was issued by the client and correctly received and handled by the server, as a JavaScript Date object.

Example

ts
{
  var lct = Session.GetLastCommandTime();
  Log(lct.toString()); // Will log something like `Sat Mar 18 2023 06:12:38 GMT-0700`
}