Skip to content

clock

0.7.4

Date-Time Types and Tools

25packages depend
1.9Mdownloads / year
74.8%test coverage
13/13checks pass

Overview

About
Maintained by Davis VaughanFirst published 2021-03-3114 releasesCRAN page ↗GitHub ↗

Provides a comprehensive library for date-time manipulations using a new family of orthogonal date-time classes (durations, time points, zoned-times, and calendars) that partition responsibilities so that the complexities of time zones are only considered when they are really needed. Capabilities include: date-time parsing, formatting, arithmetic, extraction and updating of components, and rounding.

Install

Health

CRAN checks
13OK
Slowest check: 10.3 min · r-oldrel-windows-x86_64
Code health
Yes
Tests · ratio 0.82
74.8%
Coverage · measured lines
100%
Documentation · exports
5
Dependencies · direct
Check history
  • OK2026-05-02
    13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • NOTE2026-03-10
    12 OK · 2 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE

Documentation

Documentation
READMEYes · 758 wordsVignettesYes · dynamicpkgdown siteNoNEWSYes · 100% structuredCode of conductNoContributing guideNo
Examples that run
100%
Documented parameters
98%
Return-value docs
98%
References docs
0%

Downloads

1.9M
CRAN downloads in the past year
Rank #300 · ~5.3K/day · ~159.8K/mo
Daily download trend is not available in this view yet.
112.1K30 days
421.1K90 days
1.9M1 year
Compare downloads with other packages →
Also on29.7K r2u44 autocran275.3K conda_forge5K c2d4u

Repository

Repository
110Stars
7Forks
21Open issues
3Open PRs
14Releases
1,096Commits
7Contributors
1,096 commits · Last activity 2026-04-06 · 0% stars, 30d

Stars over time

2025-05-16 · 1062026-07-07 · 110

Repository practices

Upstream repositoryBeta

9 development-tooling and community-health practices detected across 6 families in the upstream repository

Checks run against github.com/r-lib/clock on 2026-07-19.

Continuous integration (1)
GitHub Actions
Reproducibility and dev environment (1)
data-raw/
CRAN release process (2)
cran-comments.mdrevdep/
Docs source (1)
README.Rmd
Show all practices
Lint, format, editor (3)
AirVS CodeRStudio project
Coverage (1)
Codecov
How this is detected·Detection ruleset v1 (2026-07-18)

Dependencies

Declared dependencies
15 external dependencies (excludes base and recommended)
Depends (1)
R >= 4.0.0
LinkingTo (2)
Enhances (0)
none

Code & Tests

Code Composition
R 37,856 (44%)C 15,754 (18%)Rd 14,203 (16%)C++ 8,980 (10%)Markdown 7,777 (9%)Vignettes 1,711 (2%)
Code characteristics
Object systems
S3689
Cyclomatic complexity
1.0 median / 23 max
Test cases
999 / 0.82 per code line

Test coverage

Line coverage

75%

Expression

75.9%

Tests / Examples

74.8% / 60% ex

Functions

1773 154 exported

Complexity

1.5 avg / 23 max

Call network

1773 nodes / 2804 edges

Loading call graph…

Lowest coverage

1773 functions
FunctionCycloCoverage
as_iso_year_week_day exp10%
as_year_month_weekday exp10%
is_iso_year_week_day exp10%
is_naive_time exp10%
is_sys_time exp10%
is_weekday exp10%

People & History

People (2)
Maintainer (1)
Author, Maintainer
Authors (1)
Author, Maintainer
Copyright holders (1)
Copyright holder, Funder · added in 0.7.0
Funders (1)
Copyright holder, Funder · added in 0.7.0
Listed in earlier versions (2)
no longer listed · 0.1.0 to 0.6.1
no longer listed · 0.1.0 to 0.2.0
Package Timeline

14 releases. Pick two to compare their code metrics. R releases are shown for context.

  • R
    R 4.6.0 released · 2026-04-24
  • 0.7.4Latest
    2026-01-13 · current release · diff ↗
  • R
    R 4.5.0 released · 2025-04-11
  • 0.7.3
    2025-03-21 · diff ↗
  • 0.7.2
    2025-01-22 · diff ↗
  • 0.7.1
    2024-07-18 · diff ↗
  • R
    R 4.4.0 released · 2024-04-24
  • 0.7.0
    2023-05-15 · diff ↗
  • R
    R 4.3.0 released · 2023-04-21
  • 0.6.1
    2022-07-18 · diff ↗
  • R
    R 4.2.0 released · 2022-04-22
  • 0.6.0
    2021-12-02 · diff ↗
  • 0.5.0
    2021-10-29 · diff ↗
  • 0.4.1
    2021-09-21 · diff ↗
  • 0.4.0
    2021-07-22 · diff ↗
  • 0.3.1
    2021-06-28 · diff ↗
Show 5 earlier events
  • R
    R 4.1.0 released · 2021-05-18
  • 0.3.0
    2021-04-22 · diff ↗
  • 0.2.0
    2021-04-12 · diff ↗
  • 0.1.0
    2021-03-31
  • R
    R 4.0.0 released · 2020-04-24

Package metadata

First published
2021-03-31
Total releases
14 / 5 yrs
License
MIT + file LICENSE OSI
Minimum R
≥ 4.0.0
Bundled data
0.5 KB / 3 files
Download size
547 KB
Installed size
not tracked yet
With dependencies
not tracked yet
Appears in task views
Report a problem with this page →