summaryrefslogtreecommitdiff
path: root/ext/librethinkdbxx/test/upstream/times/shim.yaml
diff options
context:
space:
mode:
authorAdam Ierymenko <adam.ierymenko@gmail.com>2018-01-12 15:44:27 -0800
committerAdam Ierymenko <adam.ierymenko@gmail.com>2018-01-12 15:44:27 -0800
commit055b99c3cb5181857a114850950c670eee106b46 (patch)
tree7b5db15255d5d7a8bb3732615ff345803c5c2483 /ext/librethinkdbxx/test/upstream/times/shim.yaml
parent531842dc6b9d0f8a4014eb7af85a1e3a30ccb931 (diff)
downloadinfinitytier-055b99c3cb5181857a114850950c670eee106b46.tar.gz
infinitytier-055b99c3cb5181857a114850950c670eee106b46.zip
cleanup
Diffstat (limited to 'ext/librethinkdbxx/test/upstream/times/shim.yaml')
-rw-r--r--ext/librethinkdbxx/test/upstream/times/shim.yaml22
1 files changed, 0 insertions, 22 deletions
diff --git a/ext/librethinkdbxx/test/upstream/times/shim.yaml b/ext/librethinkdbxx/test/upstream/times/shim.yaml
deleted file mode 100644
index 3f6e5eaf..00000000
--- a/ext/librethinkdbxx/test/upstream/times/shim.yaml
+++ /dev/null
@@ -1,22 +0,0 @@
-desc: Test the native shims.
-tests:
- - def:
- cd: t = 1375147296.68
- js: t = 1375147296.68 * 1000
-
- - rb: r(Time.at(t).getlocal('-07:00')).to_iso8601
- py: r.expr(datetime.fromtimestamp(t, PacificTimeZone())).to_iso8601()
- js: r(new Date(t)).inTimezone("-07:00").toISO8601()
- ot: ("2013-07-29T18:21:36.680-07:00")
- - rb: r(Time.at(t).utc).to_iso8601
- py: r.expr(datetime.fromtimestamp(t, UTCTimeZone())).to_iso8601()
- js: r(new Date(t)).toISO8601()
- ot: ("2013-07-30T01:21:36.680+00:00")
- - rb: r(Time.at(t)).to_epoch_time
- py: r.expr(datetime.fromtimestamp(t, PacificTimeZone())).to_epoch_time()
- js: r(new Date(t)).toEpochTime()
- ot: (1375147296.68)
- - rb: r(Time.at(t).utc).to_epoch_time
- py: r.expr(datetime.fromtimestamp(t, UTCTimeZone())).to_epoch_time()
- js: r(new Date(t)).toEpochTime()
- ot: (1375147296.68)