Path: /sdk/add_on/datetime/
The CDateTime
class provides a way for scripts to get the system date and time.
Register the type with the RegisterScriptDateTime(asIScriptEngine*)
function.
- Note
- This class requires C++11 or later to compile.
Public C++ interface
class CDateTime
{
public:
CDateTime();
CDateTime(const CDateTime &other);
CDateTime &operator=(const CDateTime &other);
asINT64 operator-(
const CDateTime &other)
const;
CDateTime operator+(
asINT64 seconds)
const;
friend CDateTime operator+(
asINT64 seconds,
const CDateTime &other);
CDateTime & operator+=(
asINT64 seconds);
CDateTime operator-(
asINT64 seconds)
const;
friend CDateTime operator-(
asINT64 seconds,
const CDateTime &other);
CDateTime & operator-=(
asINT64 seconds);
bool operator==(const CDateTime &other) const;
bool operator<(const CDateTime &other) const;
};
__int64 asINT64
64 bit integer
Definition: angelscript.h:147
unsigned int asUINT
32 bit unsigned integer
Definition: angelscript.h:127
Public script interface
- See also
- datetime in the script language