NWNX:EE  8193.36.12
Time

Files

file  inc_sqlite_time.nss
 
file  nwnx_time.nss
 

Classes

struct  SQLite_MillisecondTimeStamp
 A millisecond timestamp. More...
 
struct  NWNX_Time_HighResTimestamp
 A high resolution timestamp. More...
 

Functions

string SQLite_GetFormattedSystemTime (string format)
 Returns the current time formatted according to the provided sqlite date time format string. More...
 
int SQLite_GetTimeStamp ()
 
struct SQLite_MillisecondTimeStamp SQLite_GetMillisecondTimeStamp ()
 
string SQLite_GetSystemDate ()
 Returns the current date. More...
 
string SQLite_GetSystemTime ()
 Returns current time. More...
 
string NWNX_Time_GetSystemDate ()
 Returns the current date. More...
 
string NWNX_Time_GetSystemTime ()
 Returns current time. More...
 
int NWNX_Time_GetTimeStamp ()
 
struct NWNX_Time_HighResTimestamp NWNX_Time_GetHighResTimeStamp ()
 

Function Documentation

◆ SQLite_GetFormattedSystemTime()

string SQLite_GetFormattedSystemTime ( string  format)

Returns the current time formatted according to the provided sqlite date time format string.

Parameters
formatFormat string as used by sqlites STRFTIME().
Returns
The current time in the requested format. Empty string on error.

Definition at line 35 of file inc_sqlite_time.nss.

◆ SQLite_GetTimeStamp()

int SQLite_GetTimeStamp ( )
Returns
Returns the number of seconds since midnight on January 1, 1970.

Definition at line 43 of file inc_sqlite_time.nss.

◆ SQLite_GetMillisecondTimeStamp()

struct SQLite_MillisecondTimeStamp SQLite_GetMillisecondTimeStamp ( )
Remarks
For mircosecond timestamps use NWNX_Utility_GetHighResTimeStamp().
Returns
Returns the number of milliseconds since midnight on January 1, 1970.

Definition at line 50 of file inc_sqlite_time.nss.

◆ SQLite_GetSystemDate()

string SQLite_GetSystemDate ( )

Returns the current date.

Returns
The date in the format (mm/dd/yyyy).

Definition at line 60 of file inc_sqlite_time.nss.

◆ SQLite_GetSystemTime()

string SQLite_GetSystemTime ( )

Returns current time.

Returns
The current time in the format (24:mm:ss).

Definition at line 65 of file inc_sqlite_time.nss.

◆ NWNX_Time_GetSystemDate()

string NWNX_Time_GetSystemDate ( )

Returns the current date.

Deprecated:
Use SQLite functions (see inc_sqlite_time). This will be removed in future NWNX releases.
Returns
The date in the format (mm/dd/yyyy).

Definition at line 38 of file nwnx_time.nss.

◆ NWNX_Time_GetSystemTime()

string NWNX_Time_GetSystemTime ( )

Returns current time.

Deprecated:
Use SQLite functions (see inc_sqlite_time). This will be removed in future NWNX releases.
Returns
The current time in the format (24:mm:ss).

Definition at line 44 of file nwnx_time.nss.

◆ NWNX_Time_GetTimeStamp()

int NWNX_Time_GetTimeStamp ( )
Deprecated:
Use SQLite functions (see inc_sqlite_time). This will be removed in future NWNX releases.
Returns
Returns the number of seconds since midnight on January 1, 1970.

Definition at line 50 of file nwnx_time.nss.

◆ NWNX_Time_GetHighResTimeStamp()

struct NWNX_Time_HighResTimestamp NWNX_Time_GetHighResTimeStamp ( )
Deprecated:
Use NWNX_Util_GetHighResTimeStamp(). This will be removed in future NWNX releases.
Returns
Returns the number of microseconds since midnight on January 1, 1970.

Definition at line 56 of file nwnx_time.nss.