aboutsummaryrefslogtreecommitdiff
path: root/src/querymanager.cc
diff options
context:
space:
mode:
authorfusion32 <marcopuzziello@gmail.com>2025-10-14 18:38:30 -0300
committerfusion32 <marcopuzziello@gmail.com>2025-10-14 18:38:30 -0300
commite1c2920ca25d5f69a8fd82eb26304fc0cbcc8684 (patch)
treebd18eec30ea84546693c353cdd47702539996a50 /src/querymanager.cc
parenta0f918bf65028146709010a5447b68f26a715fa0 (diff)
downloadquerymanager-e1c2920ca25d5f69a8fd82eb26304fc0cbcc8684.tar.gz
querymanager-e1c2920ca25d5f69a8fd82eb26304fc0cbcc8684.zip
the remainder of postgres helpers (probably)
This should give us everything we need to implement all the supported queries.
Diffstat (limited to 'src/querymanager.cc')
-rw-r--r--src/querymanager.cc10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/querymanager.cc b/src/querymanager.cc
index bdb27ae..25fdfb2 100644
--- a/src/querymanager.cc
+++ b/src/querymanager.cc
@@ -74,6 +74,16 @@ struct tm GetLocalTime(time_t t){
return result;
}
+struct tm GetGMTime(time_t t){
+ struct tm result;
+#if COMPILER_MSVC
+ gmtime_s(&result, &t);
+#else
+ gmtime_r(&t, &result);
+#endif
+ return result;
+}
+
int64 GetClockMonotonicMS(void){
#if OS_WINDOWS
LARGE_INTEGER Counter, Frequency;