{
  "_id": "6a4df427e691af43f13dea01",
  "Package": "datey",
  "Title": "Exact Date and Duration Arithmetic on an Annual Grid",
  "Version": "0.1.0",
  "Authors@R": "person(\"Tim\", \"Gordon\", , \"tim.gordon@btinternet.com\", role = c(\"aut\", \"cre\"),\ncomment = c(ORCID = \"0009-0006-3087-4384\"))",
  "Description": "Standardised mapping of dates onto a discrete annual grid,\ntogether with exact date and duration arithmetic.  This matters\nwhen the primary unit is years but the input data uses dates.\nExamples are actuarial mortality experience analysis and\nvaluation of life assurance and annuities, for which mortality\nrates are defined per year but experience and valuation data\nare typically defined using dates.",
  "License": "MIT + file LICENSE",
  "URL": "https://github.com/logmu-org/r-datey, https://r-datey.logmu.org/",
  "BugReports": "https://github.com/logmu-org/r-datey/issues",
  "VignetteBuilder": "knitr",
  "Config/roxygen2/markdown": "TRUE",
  "Config/roxygen2/version": "8.0.0",
  "Config/testthat/edition": "3",
  "Encoding": "UTF-8",
  "Language": "en-GB",
  "Roxygen": "list(markdown = TRUE)",
  "Repository": "https://logmu-org.r-universe.dev",
  "Date/Publication": "2026-07-03 09:30:33 UTC",
  "RemoteUrl": "https://github.com/logmu-org/r-datey",
  "RemoteRef": "HEAD",
  "RemoteSha": "421f7314b43afd7cce4c41a4ce19c4280ae07aa8",
  "NeedsCompilation": "yes",
  "Packaged": {
    "Date": "2026-07-08 06:49:05 UTC",
    "User": "root"
  },
  "Author": "Tim Gordon [aut, cre] (ORCID: <https://orcid.org/0009-0006-3087-4384>)",
  "Maintainer": "Tim Gordon <tim.gordon@btinternet.com>",
  "_user": "logmu-org",
  "_type": "src",
  "_file": "datey_0.1.0.tar.gz",
  "_fileid": "https://r2.ropensci.org/8d2d525fd03df9bfeb064c5a212a2daa5e9b4916d08aa626b5631a3d1c25b040",
  "_filesize": 304770,
  "_sha256": "8d2d525fd03df9bfeb064c5a212a2daa5e9b4916d08aa626b5631a3d1c25b040",
  "_expires": "2026-10-16T06:54:29.000Z",
  "_created": "2026-07-08T06:49:05.000Z",
  "_published": "2026-07-08T06:54:31.448Z",
  "_jobs": [
    {
      "job": 85805447654,
      "time": 133,
      "config": "linux-devel-arm64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "8160392267"
    },
    {
      "job": 85805447674,
      "time": 135,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "8160391556"
    },
    {
      "job": 85805447670,
      "time": 131,
      "config": "linux-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "8160391644"
    },
    {
      "job": 85805447656,
      "time": 136,
      "config": "linux-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "8160392383"
    },
    {
      "job": 85805447705,
      "time": 140,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "8160385561"
    },
    {
      "job": 85805447694,
      "time": 280,
      "config": "macos-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "8160432357"
    },
    {
      "job": 85805447675,
      "time": 173,
      "config": "macos-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "8160395245"
    },
    {
      "job": 85805447691,
      "time": 208,
      "config": "macos-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "8160410632"
    },
    {
      "job": 85804928025,
      "time": 200,
      "config": "source",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "8160347609"
    },
    {
      "job": 85805447603,
      "time": 120,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "8160386755"
    },
    {
      "job": 85805447641,
      "time": 100,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "8160380917"
    },
    {
      "job": 85805447622,
      "time": 100,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "8160380990"
    },
    {
      "job": 85805447618,
      "time": 99,
      "config": "windows-release",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "8160380679"
    }
  ],
  "_host": "GitHub-Actions",
  "_buildurl": "https://github.com/r-universe/logmu-org/actions/runs/28923226453",
  "_status": "success",
  "_upstream": "https://github.com/logmu-org/r-datey",
  "_commit": {
    "id": "421f7314b43afd7cce4c41a4ce19c4280ae07aa8",
    "author": "Tim Gordon <tim_gordon@btinternet.com>",
    "committer": "Tim Gordon <tim_gordon@btinternet.com>",
    "message": "Tweak README\n",
    "time": 1783071033
  },
  "_maintainer": {
    "name": "Tim Gordon",
    "email": "tim.gordon@btinternet.com"
  },
  "_distro": "resolute",
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 4.0.0",
      "role": "Depends"
    },
    {
      "package": "cpp11",
      "role": "LinkingTo"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "pillar",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    },
    {
      "package": "testthat",
      "version": ">= 3.0.0",
      "role": "Suggests"
    }
  ],
  "_owner": "logmu-org",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2026-16",
      "n": 2
    },
    {
      "week": "2026-17",
      "n": 4
    },
    {
      "week": "2026-18",
      "n": 6
    },
    {
      "week": "2026-19",
      "n": 6
    },
    {
      "week": "2026-20",
      "n": 2
    },
    {
      "week": "2026-21",
      "n": 6
    },
    {
      "week": "2026-22",
      "n": 7
    },
    {
      "week": "2026-23",
      "n": 3
    },
    {
      "week": "2026-24",
      "n": 1
    },
    {
      "week": "2026-25",
      "n": 25
    },
    {
      "week": "2026-26",
      "n": 14
    },
    {
      "week": "2026-27",
      "n": 5
    }
  ],
  "_tags": [
    {
      "name": "v0.1.0",
      "date": "2026-07-01"
    }
  ],
  "_topics": [
    "dates",
    "durations",
    "intevals",
    "cpp"
  ],
  "_stars": 0,
  "_contributors": [
    {
      "user": "timgord",
      "count": 81,
      "uuid": 13700667
    }
  ],
  "_userbio": {
    "uuid": 151875516,
    "type": "organization",
    "name": "logmu-org",
    "followers": 0
  },
  "_downloads": {
    "count": 0,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/datey"
  },
  "_devurl": "https://github.com/logmu-org/r-datey",
  "_pkgdown": "https://r-datey.logmu.org/",
  "_searchresults": 0,
  "_rbuild": "4.6.1",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/datey.html",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/readme.html",
    "extra/readme.md",
    "LICENSE",
    "manual.pdf"
  ],
  "_homeurl": "https://github.com/logmu-org/r-datey",
  "_realowner": "logmu-org",
  "_cranurl": true,
  "_releases": [
    {
      "version": "0.1.0",
      "date": "2026-07-07"
    }
  ],
  "_exports": [
    "%includes%",
    "%to%",
    "all_collapsed",
    "all_of_time",
    "all_proper",
    "any_collapsed",
    "datey",
    "datey_interval",
    "durationy",
    "end_day",
    "interval_includes",
    "is_collapsed",
    "is_datey",
    "is_datey_interval",
    "is_durationy",
    "is_leap_year",
    "is_mid_day",
    "is_proper",
    "is_start_day",
    "mid_day",
    "NA_datey_",
    "NA_datey_interval_",
    "NA_durationy_",
    "start_day",
    "to_ymdf",
    "valid_duration_years_max",
    "valid_years_end",
    "valid_years_start"
  ],
  "_help": [
    {
      "page": "all_of_time",
      "title": "'All of time' — the maximum valid 'datey_interval'",
      "topics": [
        "all_of_time"
      ]
    },
    {
      "page": "as_years_datey",
      "title": "Convert a 'datey' to calendar years (including fractional part)",
      "topics": [
        "as.double.datey",
        "as.integer.datey",
        "as_years_datey"
      ]
    },
    {
      "page": "as_years_durationy",
      "title": "Convert a 'durationy' to duration in years",
      "topics": [
        "as.double.durationy",
        "as.integer.durationy",
        "as_years_durationy"
      ]
    },
    {
      "page": "combine",
      "title": "Combine multiple 'datey', 'durationy' or 'datey_interval' vectors",
      "topics": [
        "c.datey",
        "c.datey_interval",
        "c.durationy",
        "combine"
      ]
    },
    {
      "page": "datey",
      "title": "Create a 'datey'",
      "topics": [
        "datey",
        "datey.character",
        "datey.Date",
        "datey.datey",
        "datey.default",
        "datey.double",
        "datey.integer",
        "datey.POSIXct",
        "datey.POSIXlt",
        "end_day",
        "mid_day",
        "start_day"
      ]
    },
    {
      "page": "datey_components",
      "title": "Get year, month, day or day_fraction breakdown of a 'datey'",
      "topics": [
        "$.datey",
        "datey_components",
        "to_ymdf"
      ]
    },
    {
      "page": "datey_interval",
      "title": "Create a 'datey_interval'",
      "topics": [
        "%to%",
        "datey_interval",
        "datey_interval.datey",
        "datey_interval.datey_interval",
        "datey_interval.default",
        "datey_interval.double",
        "datey_interval.integer",
        "datey_interval.logical"
      ]
    },
    {
      "page": "durationy",
      "title": "Create a 'durationy' from an annual duration",
      "topics": [
        "durationy",
        "durationy.character",
        "durationy.datey_interval",
        "durationy.default",
        "durationy.double",
        "durationy.durationy",
        "durationy.integer"
      ]
    },
    {
      "page": "integer_constants",
      "title": "Integer constants",
      "topics": [
        "integer_constants",
        "valid_duration_years_max",
        "valid_years_end",
        "valid_years_start"
      ]
    },
    {
      "page": "interval_includes",
      "title": "Whether a 'datey_interval' includes a 'datey'",
      "topics": [
        "%includes%",
        "interval_includes"
      ]
    },
    {
      "page": "interval_nature",
      "title": "Properties of a 'datey_interval'",
      "topics": [
        "all_collapsed",
        "all_collapsed.datey_interval",
        "all_collapsed.default",
        "all_proper",
        "all_proper.datey_interval",
        "all_proper.default",
        "any_collapsed",
        "any_collapsed.datey_interval",
        "any_collapsed.default",
        "interval_nature",
        "is_collapsed",
        "is_collapsed.datey_interval",
        "is_collapsed.default",
        "is_proper",
        "is_proper.datey_interval",
        "is_proper.default"
      ]
    },
    {
      "page": "interval_properties",
      "title": "Get the start, end or duration of a 'datey_interval'",
      "topics": [
        "$.datey_interval",
        "interval_properties"
      ]
    },
    {
      "page": "is_leap_year",
      "title": "Is 'x' a leap year?",
      "topics": [
        "is_leap_year",
        "is_leap_year.Date",
        "is_leap_year.datey",
        "is_leap_year.default",
        "is_leap_year.double",
        "is_leap_year.integer",
        "is_leap_year.POSIXct",
        "is_leap_year.POSIXlt"
      ]
    },
    {
      "page": "is_NA",
      "title": "Whether 'datey', 'durationy' or 'datey_interval' are NA",
      "topics": [
        "anyNA.datey",
        "anyNA.datey_interval",
        "anyNA.durationy",
        "is.na.datey",
        "is.na.datey_interval",
        "is.na.durationy",
        "is_NA"
      ]
    },
    {
      "page": "is_type",
      "title": "Is 'x' a 'datey', 'durationy' or 'datey_interval'?",
      "topics": [
        "is_datey",
        "is_datey_interval",
        "is_durationy",
        "is_type"
      ]
    },
    {
      "page": "is_xxx_day",
      "title": "Is a 'datey' the start (or end) or middle of a day?",
      "topics": [
        "is_mid_day",
        "is_start_day",
        "is_xxx_day"
      ]
    },
    {
      "page": "max_min",
      "title": "Minimum, maximum or range of 'datey' or 'durationy'",
      "topics": [
        "max_min",
        "Summary.datey",
        "Summary.datey_interval",
        "Summary.durationy"
      ]
    },
    {
      "page": "mean",
      "title": "Mean value of 'datey' or 'durationy'",
      "topics": [
        "mean",
        "mean.datey",
        "mean.datey_interval",
        "mean.durationy"
      ]
    },
    {
      "page": "NAs",
      "title": "The 'datey', 'durationy' and 'datey_interval' versions of NA",
      "topics": [
        "NAs",
        "NA_datey_",
        "NA_datey_interval_",
        "NA_durationy_"
      ]
    },
    {
      "page": "ops",
      "title": "Operators for 'datey', 'durationy' and 'datey_interval'",
      "topics": [
        "ops",
        "Ops.datey_type"
      ]
    },
    {
      "page": "seq",
      "title": "Create 'datey' or 'durationy' sequence vector",
      "topics": [
        "seq",
        "seq.datey",
        "seq.durationy"
      ]
    },
    {
      "page": "subset",
      "title": "Subset 'datey', 'durationy' or 'datey_interval' vectors",
      "topics": [
        "subset",
        "[.datey",
        "[.datey_interval",
        "[.durationy",
        "[<-.datey",
        "[<-.datey_interval",
        "[<-.durationy"
      ]
    },
    {
      "page": "text_from_datey",
      "title": "Format or print a 'datey'",
      "topics": [
        "as.character.datey",
        "format.datey",
        "print.datey",
        "text_from_datey"
      ]
    },
    {
      "page": "text_from_datey_interval",
      "title": "Format or print a 'datey_interval'",
      "topics": [
        "as.character.datey_interval",
        "format.datey_interval",
        "print.datey_interval",
        "text_from_datey_interval"
      ]
    },
    {
      "page": "text_from_durationy",
      "title": "Format or print a 'durationy'",
      "topics": [
        "as.character.durationy",
        "format.durationy",
        "print.durationy",
        "text_from_durationy"
      ]
    }
  ],
  "_pkglogo": "https://github.com/logmu-org/r-datey/raw/HEAD/man/figures/logo.svg",
  "_readme": "https://github.com/logmu-org/r-datey/raw/HEAD/README.md",
  "_rundeps": [
    "cpp11"
  ],
  "_sysdeps": [
    {
      "shlib": "libstdc++",
      "package": "libstdc++6",
      "source": "gcc",
      "version": "16-20260322-1ubuntu1",
      "name": "c++",
      "homepage": "http://gcc.gnu.org/",
      "description": "GNU Standard C++ Library v3"
    }
  ],
  "_vignettes": [
    {
      "source": "datey.Rmd",
      "filename": "datey.html",
      "title": "Get started with datey",
      "engine": "knitr::rmarkdown",
      "headings": [
        "The core types",
        "Creating a datey",
        "When in the day?",
        "From year, month and day",
        "From base R dates",
        "From fractional years or text",
        "Properties of a datey",
        "Creating a durationy",
        "Comparisons and arithmetic",
        "datey_interval -- representing a time period",
        "Interval membership testing",
        "Interval properties",
        "Intersection",
        "NA values",
        "Sequences and statistics"
      ],
      "created": "2026-05-09 16:52:52",
      "modified": "2026-06-24 18:44:44",
      "commits": 9
    },
    {
      "source": "spec.Rmd",
      "filename": "spec.html",
      "title": "The datey specification",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Introduction",
        "Definitions",
        "The fixed precision annual grid",
        "Types",
        "Dates",
        "Durations",
        "Mapping years to a datey or durationy",
        "Mapping a date to a datey",
        "Mapping a datey to a date and day-fraction",
        "Arithmetic and comparative operations",
        "Pure datey and duration operations",
        "Mixed datey / durationy and numeric operations",
        "Text representations",
        "datey text format",
        "durationy text format"
      ],
      "created": "2026-05-09 16:52:52",
      "modified": "2026-06-30 16:01:44",
      "commits": 14
    },
    {
      "source": "why-datey.Rmd",
      "filename": "why-datey.html",
      "title": "Why datey?",
      "engine": "knitr::rmarkdown",
      "headings": [
        "The unit is years, but the data are dates",
        "The datey approach: a fixed annual grid",
        "Interval algebra for rate periods",
        "Standardised day-fractions for exposure calculations",
        "What datey deliberately leaves out"
      ],
      "created": "2026-06-12 17:14:20",
      "modified": "2026-06-26 10:18:06",
      "commits": 5
    }
  ],
  "_score": 5.2552725051033065,
  "_indexed": true,
  "_nocasepkg": "datey",
  "_universes": [
    "logmu-org"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.1.0",
      "date": "2026-07-08T06:51:27.000Z",
      "distro": "resolute",
      "arch": "aarch64",
      "commit": "421f7314b43afd7cce4c41a4ce19c4280ae07aa8",
      "fileid": "https://r2.ropensci.org/63df094ed226630e89f4c56ce2004a020909d43726c46015ebc7a36c72f93e77",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/logmu-org/actions/runs/28923226453"
    },
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.1.0",
      "date": "2026-07-08T06:51:20.000Z",
      "distro": "resolute",
      "arch": "x86_64",
      "commit": "421f7314b43afd7cce4c41a4ce19c4280ae07aa8",
      "fileid": "https://r2.ropensci.org/0d9bc51547a6388518512641e8a040e528806c4bcb11de098622230b657b9f69",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/logmu-org/actions/runs/28923226453"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "0.1.0",
      "date": "2026-07-08T06:51:25.000Z",
      "distro": "resolute",
      "arch": "aarch64",
      "commit": "421f7314b43afd7cce4c41a4ce19c4280ae07aa8",
      "fileid": "https://r2.ropensci.org/06eaacf2238f3e80e10d1f13b738542216afa56595cc4c52bc9575c1b488f3ea",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/logmu-org/actions/runs/28923226453"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "0.1.0",
      "date": "2026-07-08T06:51:20.000Z",
      "distro": "resolute",
      "arch": "x86_64",
      "commit": "421f7314b43afd7cce4c41a4ce19c4280ae07aa8",
      "fileid": "https://r2.ropensci.org/6cc488828f5cd96814fb00b9c8dad21f9295dbbb4e8a0dac4e7e0209b94d7678",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/logmu-org/actions/runs/28923226453"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.1.0",
      "date": "2026-07-08T06:51:08.000Z",
      "arch": "aarch64",
      "commit": "421f7314b43afd7cce4c41a4ce19c4280ae07aa8",
      "fileid": "https://r2.ropensci.org/c93e36763c6c80536b7069d254b636840aa0ac16661fbb9efe1c1297a1be1931",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/logmu-org/actions/runs/28923226453"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.1.0",
      "date": "2026-07-08T06:53:04.000Z",
      "arch": "x86_64",
      "commit": "421f7314b43afd7cce4c41a4ce19c4280ae07aa8",
      "fileid": "https://r2.ropensci.org/ecbe57cc147946f8c3d047ab3b523ab2f5520863754b073403b5897ee26c0317",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/logmu-org/actions/runs/28923226453"
    },
    {
      "r": "4.6.1",
      "os": "mac",
      "version": "0.1.0",
      "date": "2026-07-08T06:51:30.000Z",
      "arch": "aarch64",
      "commit": "421f7314b43afd7cce4c41a4ce19c4280ae07aa8",
      "fileid": "https://r2.ropensci.org/936d43e41b56721f4721d50d96864fd44cad72f225d56df41c2452163c9fc8b1",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/logmu-org/actions/runs/28923226453"
    },
    {
      "r": "4.6.1",
      "os": "mac",
      "version": "0.1.0",
      "date": "2026-07-08T06:52:04.000Z",
      "arch": "x86_64",
      "commit": "421f7314b43afd7cce4c41a4ce19c4280ae07aa8",
      "fileid": "https://r2.ropensci.org/1c006ba2f326b0c58845c211fd1c599245ea8f3e2441269ece6bb7685db8c9fc",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/logmu-org/actions/runs/28923226453"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.1.0",
      "date": "2026-07-08T06:51:16.000Z",
      "arch": "emscripten",
      "commit": "421f7314b43afd7cce4c41a4ce19c4280ae07aa8",
      "fileid": "https://r2.ropensci.org/4bfc82356e165286b633fe24b1a97f60962ef144dc2f5926fa156f22a94981ff",
      "status": "success",
      "buildurl": "https://github.com/r-universe/logmu-org/actions/runs/28923226453"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.1.0",
      "date": "2026-07-08T06:50:20.000Z",
      "arch": "x86_64",
      "commit": "421f7314b43afd7cce4c41a4ce19c4280ae07aa8",
      "fileid": "https://r2.ropensci.org/12cde17f075e348b9c71b4c215f69ef84bc8c2a87e8bcb32d5ba1fbe81e58d48",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/logmu-org/actions/runs/28923226453"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.1.0",
      "date": "2026-07-08T06:50:20.000Z",
      "arch": "x86_64",
      "commit": "421f7314b43afd7cce4c41a4ce19c4280ae07aa8",
      "fileid": "https://r2.ropensci.org/1d97ff2830250a786e067e148aa6945e7c5644343a0df326edea145933b10bc7",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/logmu-org/actions/runs/28923226453"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "0.1.0",
      "date": "2026-07-08T06:50:20.000Z",
      "arch": "x86_64",
      "commit": "421f7314b43afd7cce4c41a4ce19c4280ae07aa8",
      "fileid": "https://r2.ropensci.org/e1fe5c3413db6918a858201bd083eafcffcc5b28fb9383170ebaf36757359f89",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/logmu-org/actions/runs/28923226453"
    }
  ]
}