aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/eventlog/dumper/common.h
diff options
context:
space:
mode:
authorqrort <qrort@yandex-team.com>2022-11-30 23:47:12 +0300
committerqrort <qrort@yandex-team.com>2022-11-30 23:47:12 +0300
commit22f8ae0e3f5d68b92aecccdf96c1d841a0334311 (patch)
treebffa27765faf54126ad44bcafa89fadecb7a73d7 /library/cpp/eventlog/dumper/common.h
parent332b99e2173f0425444abb759eebcb2fafaa9209 (diff)
downloadydb-22f8ae0e3f5d68b92aecccdf96c1d841a0334311.tar.gz
validate canons without yatest_common
Diffstat (limited to 'library/cpp/eventlog/dumper/common.h')
-rw-r--r--library/cpp/eventlog/dumper/common.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/library/cpp/eventlog/dumper/common.h b/library/cpp/eventlog/dumper/common.h
new file mode 100644
index 0000000000..839fc7b221
--- /dev/null
+++ b/library/cpp/eventlog/dumper/common.h
@@ -0,0 +1,8 @@
+#pragma once
+
+#include <util/generic/string.h>
+
+/**
+ * Returns microseconds since the epoch.
+ */
+ui64 ParseTime(const TString& str, ui64 defValue, int offset /* timezone offset, default MSK */ = 3);