Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Support intervalds and/or intervaldsus

Open
#36 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
python
Domain
databases

Research direction

The issue names Python timedelta and the Comdb2 intervalds/intervaldsus values but no files or tests. Start by locating the existing Python-to-Comdb2 type mappings and their tests, then determine how timedelta precision should map to each interval type. Done means durations can be stored and retrieved through the API without using numeric seconds.

Written by the indexing model from the issue text.

Description

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.

Dominant language
Python
Stars
29
Forks
28
Avg merge
11h 25m
Merged PRs (30d)
2

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from bloomberg/python-comdb2

All issues in bloomberg/python-comdb2

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.