bloomberg / bloomberg/python-comdb2

Support intervalds and/or intervaldsus

未关闭
#36 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
Python
星标
29
派生
28
平均合并
11 小时 25 分钟
30 天内合并 PR
2

描述

**Is your feature request related to a problem? Please describe.**
It would be convenient to store time durations directly in the DB rather than storing it as a number of seconds.

**Describe the solution you'd like**
Use a Python timedelta to map to the Comdb2 intervalds or intervaldsus values. This seems like a natural mapping.

**Describe alternatives you've considered**
The alternative is to use a double or an int (depending on the needed precision) to store the duration as a number of seconds.

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。