37 sqlquery query = SqlPrepareQueryObject(GetModule(),
"SELECT STRFTIME(@format, 'now', 'localtime')");
38 SqlBindString(query,
"@format", format);
40 return SqlGetString(query, 0);
45 sqlquery query = SqlPrepareQueryObject(GetModule(),
"SELECT STRFTIME('%s', 'now')");
47 return SqlGetInt(query, 0);
52 sqlquery query = SqlPrepareQueryObject(GetModule(),
"SELECT STRFTIME('%s', 'now'), SUBSTR(STRFTIME('%f', 'now'), 4)");
55 t.
seconds = SqlGetInt(query, 0);
56 t.milliseconds = SqlGetInt(query, 1);
string SQLite_GetFormattedSystemTime(string format)
Returns the current time formatted according to the provided sqlite date time format string.
struct SQLite_MillisecondTimeStamp SQLite_GetMillisecondTimeStamp()
int SQLite_GetTimeStamp()
string SQLite_GetSystemTime()
Returns current time.
string SQLite_GetSystemDate()
Returns the current date.
int milliseconds
Milliseconds.
int seconds
Seconds since epoch.