summaryrefslogtreecommitdiff
path: root/hscript/meta.hh
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2019-10-24 02:20:33 -0500
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2019-10-24 02:20:33 -0500
commit4755175ad26eaff1765407bb01f8820f394f847b (patch)
tree9951bb91734a04e71f82d44284c74e56e8711f09 /hscript/meta.hh
parent30b63f19fedde7b60bf99f3a68c0437a0c93b64e (diff)
downloadhorizon-4755175ad26eaff1765407bb01f8820f394f847b.tar.gz
horizon-4755175ad26eaff1765407bb01f8820f394f847b.tar.bz2
horizon-4755175ad26eaff1765407bb01f8820f394f847b.tar.xz
horizon-4755175ad26eaff1765407bb01f8820f394f847b.zip
hscript: Fully implement Timezone, add tests
Diffstat (limited to 'hscript/meta.hh')
-rw-r--r--hscript/meta.hh7
1 files changed, 7 insertions, 0 deletions
diff --git a/hscript/meta.hh b/hscript/meta.hh
index 7dc3f68..b2e1963 100644
--- a/hscript/meta.hh
+++ b/hscript/meta.hh
@@ -66,6 +66,13 @@ public:
};
class Timezone : public StringKey {
+private:
+ Timezone(int _line, const std::string &my_zone) :
+ StringKey(_line, my_zone) {}
+public:
+ static Key *parseFromData(const std::string &data, int lineno, int *errors,
+ int *warnings);
+ bool execute(ScriptOptions) const override;
};
class Repository : public StringKey {