(svn r23619) -Add: ScriptDate::GetSystemTime, to get the seconds since 1 Jan 1970 of the real system (GameScript only)

This commit is contained in:
truebrain
2011-12-19 20:59:12 +00:00
parent 55de5d336c
commit c7c1deaf41
3 changed files with 17 additions and 0 deletions

View File

@@ -65,6 +65,14 @@ public:
* @return The date.
*/
static int32 GetDate(int32 year, int32 month, int32 day_of_month);
/**
* Get the time of the host system.
* @return The amount of seconds passed since 1 Jan 1970.
* @api -ai
* @note This uses the clock of the host system, which can skew or be set back. Use with caution.
*/
static int32 GetSystemTime();
};
#endif /* SCRIPT_DATE_HPP */