diff options
Diffstat (limited to 'Source/Scripting/angelscript/add_on/datetime/datetime.h')
-rw-r--r-- | Source/Scripting/angelscript/add_on/datetime/datetime.h | 41 |
1 files changed, 20 insertions, 21 deletions
diff --git a/Source/Scripting/angelscript/add_on/datetime/datetime.h b/Source/Scripting/angelscript/add_on/datetime/datetime.h index cb087cf4..8b28004c 100644 --- a/Source/Scripting/angelscript/add_on/datetime/datetime.h +++ b/Source/Scripting/angelscript/add_on/datetime/datetime.h @@ -1,7 +1,7 @@ #ifndef SCRIPTDATETIME_H #define SCRIPTDATETIME_H -#ifndef ANGELSCRIPT_H +#ifndef ANGELSCRIPT_H // Avoid having to inform include path if header is already include before #include <angelscript.h> #endif @@ -14,26 +14,25 @@ BEGIN_AS_NAMESPACE -class CDateTime -{ -public: - // Constructors - CDateTime(); - CDateTime(const CDateTime &other); - - // Copy the stored value from another any object - CDateTime &operator=(const CDateTime &other); - - // Accessors - asUINT getYear() const; - asUINT getMonth() const; - asUINT getDay() const; - asUINT getHour() const; - asUINT getMinute() const; - asUINT getSecond() const; - -protected: - std::chrono::system_clock::time_point tp; +class CDateTime { + public: + // Constructors + CDateTime(); + CDateTime(const CDateTime &other); + + // Copy the stored value from another any object + CDateTime &operator=(const CDateTime &other); + + // Accessors + asUINT getYear() const; + asUINT getMonth() const; + asUINT getDay() const; + asUINT getHour() const; + asUINT getMinute() const; + asUINT getSecond() const; + + protected: + std::chrono::system_clock::time_point tp; }; void RegisterScriptDateTime(asIScriptEngine *engine); |