parttime
0.1.2Partial Datetime Handling
Overview
Datetimes and timestamps are invariably an imprecise notation, with any partial representation implying some amount of uncertainty. To handle this, 'parttime' provides classes for embedding partial missingness as a central part of its datetime classes. This central feature allows for more ergonomic use of datetimes for challenging datetime computation, including calculations of overlapping date ranges, imputations, and more thoughtful handling of ambiguity that arises from uncertain time zones. This package was developed first and foremost with pharmaceutical applications in mind, but aims to be agnostic to application to accommodate general use cases just as conveniently.
Install
Health
- OK2026-06-0913 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
- NOTE2026-06-0812 OK · 1 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
- OK2026-03-1014 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
Documentation
- Examples that run
- 100%
- Documented parameters
- 94%
- Return-value docs
- 100%
- References docs
- 4%
Downloads
Repository
Stars over time
Forks over time
Releases over time
Issues over time
PRs over time
Repository practices
2 development-tooling and community-health practices detected across 2 families in the upstream repository
Checks run against github.com/dgkf/parttime on 2026-07-19.
Dependencies
Code & Tests
- Cyclomatic complexity
- 1.0 median / 11 max
- Test cases
- 41 / 0.25 per code line
Test coverage
Line coverage
69%
Expression
67.0%
Tests / Examples
68.8% / 63% ex
Functions
186 40 exported
Complexity
1.6 avg / 11 max
Call network
186 nodes / 136 edges
Call graph
Open call graph →Lowest coverage
186 functions| Function | Cyclo | Coverage |
|---|---|---|
| has_partial exp | 2 | 0% |
| has_partial_date exp | 1 | 0% |
| has_partial_time exp | 1 | 0% |
| impute_date exp | 1 | 0% |
| impute_date_max exp | 1 | 0% |
| impute_date_mid exp | 1 | 0% |
People & History
3 releases. Pick two to compare their code metrics. R releases are shown for context.
- RR 4.6.0 released · 2026-04-24
- RR 4.5.0 released · 2025-04-11
- RR 4.4.0 released · 2024-04-24
- 0.1.2Latest
- RR 4.3.0 released · 2023-04-21
- 0.1.12023-03-08 · diff ↗
- 0.1.02022-11-04
- RR 4.2.0 released · 2022-04-22
Package metadata
- First published
- 2022-11-04
- Total releases
- 3 / 4 yrs
- License
- MIT + file LICENSE OSI
- Minimum R
- ≥ 3.6
- Download size
- 59 KB
- Installed size
- not tracked yet
- With dependencies
- not tracked yet