{
  "_id": "6a4d35b1088975274b3ce62d",
  "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",
  "NeedsCompilation": "yes",
  "Packaged": {
    "Date": "2026-07-07 17:18:21 UTC",
    "User": "root"
  },
  "Author": "Tim Gordon [aut, cre] (ORCID:\n<https://orcid.org/0009-0006-3087-4384>)",
  "Maintainer": "Tim Gordon <tim.gordon@btinternet.com>",
  "Repository": "https://cran.r-universe.dev",
  "Date/Publication": "2026-07-07 09:30:15 UTC",
  "RemoteUrl": "https://github.com/cran/datey",
  "RemoteRef": "HEAD",
  "RemoteSha": "64c18c6813c2808471f1e1a1f8dde352c5e12856",
  "_user": "cran",
  "_type": "src",
  "_file": "datey_0.1.0.tar.gz",
  "_fileid": "https://r2.ropensci.org/515470aaac018b7f167f9d28b3c97c9ae49a3a0ebbd7f14404da1d483bd22a3a",
  "_filesize": 305258,
  "_sha256": "515470aaac018b7f167f9d28b3c97c9ae49a3a0ebbd7f14404da1d483bd22a3a",
  "_expires": "2026-10-15T17:21:52.000Z",
  "_created": "2026-07-07T17:18:21.000Z",
  "_published": "2026-07-07T17:21:53.733Z",
  "_jobs": [
    {
      "job": 85683424538,
      "time": 136,
      "config": "linux-devel-arm64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "8145860956"
    },
    {
      "job": 85683424587,
      "time": 143,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "8145857687"
    },
    {
      "job": 85683424539,
      "time": 145,
      "config": "linux-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "8145862987"
    },
    {
      "job": 85683424529,
      "time": 133,
      "config": "linux-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "8145854153"
    },
    {
      "job": 85682726315,
      "time": 198,
      "config": "source",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "8145793990"
    },
    {
      "job": 85683424496,
      "time": 123,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "8145849572"
    }
  ],
  "_host": "GitHub-Actions",
  "_buildurl": "https://github.com/r-universe/cran/actions/runs/28884960417",
  "_status": "success",
  "_upstream": "https://github.com/cran/datey",
  "_commit": {
    "id": "64c18c6813c2808471f1e1a1f8dde352c5e12856",
    "author": "Tim Gordon <tim.gordon@btinternet.com>",
    "committer": "cran-robot <csardi.gabor+cran@gmail.com>",
    "message": "version 0.1.0\n",
    "time": 1783416615
  },
  "_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": "cran",
  "_selfowned": false,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2026-28",
      "n": 1
    }
  ],
  "_tags": [
    {
      "name": "0.1.0",
      "date": "2026-07-07"
    }
  ],
  "_stars": 0,
  "_userbio": {
    "uuid": 6899542,
    "type": "organization",
    "name": "cran",
    "followers": 617,
    "description": "Unofficial read-only mirror of all CRAN R packages"
  },
  "_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,
  "_topics": [
    "cpp"
  ],
  "_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"
  ],
  "_cranurl": false,
  "_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/cran/datey/raw/HEAD/man/figures/logo.svg",
  "_readme": "https://github.com/cran/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-07-07 09:30:15",
      "modified": "2026-07-07 09:30:15",
      "commits": 1
    },
    {
      "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-07-07 09:30:15",
      "modified": "2026-07-07 09:30:15",
      "commits": 1
    },
    {
      "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-07-07 09:30:15",
      "modified": "2026-07-07 09:30:15",
      "commits": 1
    }
  ],
  "_score": 3.1760912590556813,
  "_indexed": true,
  "_nocasepkg": "datey",
  "_universes": [
    "cran",
    "logmu-org"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.1.0",
      "date": "2026-07-07T17:21:10.000Z",
      "distro": "resolute",
      "arch": "aarch64",
      "commit": "64c18c6813c2808471f1e1a1f8dde352c5e12856",
      "fileid": "https://r2.ropensci.org/1d6ecdfd0255f9e1093efce868e2226dcaa4bcf1ac5395e27bc653e7f4c27f95",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/28884960417"
    },
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.1.0",
      "date": "2026-07-07T17:20:59.000Z",
      "distro": "resolute",
      "arch": "x86_64",
      "commit": "64c18c6813c2808471f1e1a1f8dde352c5e12856",
      "fileid": "https://r2.ropensci.org/fafc93ade7067ccce25d7e1edfef06e2520f9e474c0158561ddea88438598610",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/28884960417"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "0.1.0",
      "date": "2026-07-07T17:21:14.000Z",
      "distro": "resolute",
      "arch": "aarch64",
      "commit": "64c18c6813c2808471f1e1a1f8dde352c5e12856",
      "fileid": "https://r2.ropensci.org/900fbe85b109176488a9bd9db73317aed0c7bf7b65f02b19361494a9750ef9f8",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/28884960417"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "0.1.0",
      "date": "2026-07-07T17:20:50.000Z",
      "distro": "resolute",
      "arch": "x86_64",
      "commit": "64c18c6813c2808471f1e1a1f8dde352c5e12856",
      "fileid": "https://r2.ropensci.org/dc9f5b10195265a3ee2465cdbaa0dfe5df05e128b01a6456bc7cc1672ecbbc7a",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/28884960417"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.1.0",
      "date": "2026-07-07T17:20:53.000Z",
      "arch": "emscripten",
      "commit": "64c18c6813c2808471f1e1a1f8dde352c5e12856",
      "fileid": "https://r2.ropensci.org/dc22e73a0a9529486cb8ad7b9018c1518c6c6ed3a1c1d9e4b981d35f301f079d",
      "status": "success",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/28884960417"
    }
  ]
}