From 61984730ac461010214fe7322d32c6f5ebb79639 Mon Sep 17 00:00:00 2001 From: curt Date: Thu, 17 Nov 2005 15:30:07 +0000 Subject: [PATCH] Add a small accessor function to expose local timezone offset. --- simgear/timing/sg_time.hxx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/simgear/timing/sg_time.hxx b/simgear/timing/sg_time.hxx index 24175e2e..5037f541 100644 --- a/simgear/timing/sg_time.hxx +++ b/simgear/timing/sg_time.hxx @@ -192,6 +192,9 @@ public: /** @return grenich side real time (lst when longitude == 0) */ inline double getGst() const { return gst; }; + + /** @return offset in seconds to local timezone time */ + inline time_t get_local_offset() const { return local_offset; }; };