Skip to content

Look Up Time Zones of Point Coordinates

9packages dependsuggested by 4
23.8Kdownloads / year
96.4%test coverage
12/13flavors OK

Overview

About

Input latitude and longitude values or an 'sf/sfc' POINT object and get back the time zone in which they exist. Two methods are implemented. One is very fast and uses 'Rcpp' in conjunction with data from the 'Javascript' library (https://github.com/darkskyapp/tz-lookup-oss/). This method also works outside of countries' borders and in international waters, however speed comes at the cost of accuracy - near time zone borders away from populated centres there is a chance that it will return the incorrect time zone. The other method is slower but more accurate - it uses the 'sf' package to intersect points with a detailed map of time zones from here: https://github.com/evansiroky/timezone-boundary-builder/. The package also contains several utility functions for helping to understand and visualize time zones, such as listing of world time zones, including information about daylight savings times and their offsets from UTC. You can also plot a time zone to visualize the UTC offset over a year and when daylight savings times are in effect.

Changes in 0.3.2

This is a maintenance release, with no new features. The rgdal package was

removed as a Suggested package, as it has been archived on CRAN.

From NEWS.md in the release

Install

Health

CRAN checks
1ERROR12OK
Check messages
ERRORexamplesr-devel-windows-x86_64
Running examples in 'lutz-Ex.R' failed
The error most likely occurred in:

> ### Name: tz_plot
> ### Title: Plot a time zone
> ### Aliases: tz_plot
> 
> ### ** Examples
> 
> tz_plot("America/Vancouver")
Error in C_force_tz(to_posixct(time), tz, roll_dst) : 
  CCTZ: Unrecognized output timezone: "America/Vancouver"
Calls: tz_plot ... <Anonymous> -> .force_tz -> from_posixct -> C_force_tz
Execution halted
ERRORtestsr-devel-windows-x86_64
Running 'testthat.R' [52s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(lutz)
  > 
  > test_check("lutz")
  Saving _problems/test-olson-8.R
  Saving _problems/test-olson-14.R
  [ FAIL 2 | WARN 0 | SKIP 0 | PASS 1079 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-olson.R:8:3'): tz_plot works ───────────────────────────────────
  Error in `C_force_tz(to_posixct(time), tz, roll_dst)`: CCTZ: Unrecognized output timezone: "America/Vancouver"
  Backtrace:
       ▆
    1. ├─testthat::expect_is(tz_plot("America/Vancouver"), "ggplot") at test-olson.R:8:3
    2. │ └─testthat::quasi_label(enquo(object), label)
    3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
    4. └─lutz::tz_plot("America/Vancouver")
    5.   └─lutz::tz_offset(date_seq, tz)
    6.     ├─lubridate::force_tz(as.POSIXlt(dt), tz)
    7.     └─lubridate:::force_tz.default(as.POSIXlt(dt), tz)
    8.       └─timechange:
...[truncated]...
)
   10.           ├─timechange:::from_posixct(...)
   11.           └─timechange:::C_force_tz(to_posixct(time), tz, roll_dst)
  ── Error ('test-olson.R:14:3'): tz_offset works ────────────────────────────────
  Error in `C_force_tz(to_posixct(time), tz, roll_dst)`: CCTZ: Unrecognized output timezone: "America/Vancouver"
  Backtrace:
       ▆
    1. ├─testthat::expect_is(...) at test-olson.R:14:3
    2. │ └─testthat::quasi_label(enquo(object), label)
    3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
    4. └─lutz::tz_offset(Sys.Date(), "America/Vancouver")
    5.   ├─lubridate::force_tz(as.POSIXlt(dt), tz)
    6.   └─lubridate:::force_tz.default(as.POSIXlt(dt), tz)
    7.     └─timechange::time_force_tz(...)
    8.       └─timechange:::.force_tz(time, tz, tzout, roll_dst)
    9.         ├─timechange:::from_posixct(...)
   10.         └─timechange:::C_force_tz(to_posixct(time), tz, roll_dst)
  
  [ FAIL 2 | WARN 0 | SKIP 0 | PASS 1079 ]
  Error:
  ! Test failures.
  Execution halted

CRAN check page ↗

Slowest check: 4.0 min · r-devel-windows-x86_64
Status changes
  • ERROR12 OK, 1 ERROR2026-09-18
  • OK13 OK2026-08-05
  • NOTE12 OK, 1 NOTE2026-08-01
  • OK12 OK2026-04-25
  • NOTE11 OK, 3 NOTE2026-04-22
Show 2 earlier changesHide 2 earlier changes
  • ERROR10 OK, 3 NOTE, 1 ERROR2026-04-18
  • NOTE11 OK, 3 NOTE2026-03-10
Advisories

none known

Documentation

In release 0.3.2
READMEYes · 607 wordsVignettesNoNEWSYes · 100% structured · mentions 0.3.2Citation fileNoWebsiteYes · pkgdown
Help pages
6 (1 internal)includes a package overview page
Examples that run
100%4 run in a plain check
Exported functions with examples
80%
Documented parameters
100%
Return-value docs
100%
Help pages citing references
0%

Downloads

23.8K
CRAN downloads in the past year
Rank #2,746 · ~65/day · ~2K/mo
Daily download trend is not available in this view yet.
1.7K30 days
5.5K90 days
23.8K1 year
Compare downloads with other packages →
Also on760 r2u2 autocran442 conda_forge191 c2d4u

Repository

61Stars
5Forks
4Open issues
0Open PRs
3Releases
182Commits
4Commit identities
182 commits · Last activity 2023-10-17 · 0% stars, 30d · Default branch at 0.3.2.9000, ahead of CRAN 0.3.2 (checked 2026-10-22)
Responsiveness
How these are sampled
PRs merged (all time)
86%
Median days to close, 50 most recently updated closed issues
71
Median days to close, 50 most recently updated closed PRs
1

Stars over time

2025-05-27 · 602026-07-07 · 61
PracticesBeta

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

Checks run against github.com/ateucher/lutz on 2026-10-22.

Continuous integration (4)
GitHub ActionsR CMD check workflowTravis CI (config file)AppVeyor

The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel

Docs source (4)
README.Rmdpkgdown

GitHub Pages site last deployed 2023-10-17 · The repository has a site deploy workflow

pkgdown site last built 2023-10-17

Coverage (1)
Coverage reporting (Codecov)
Reproducibility and dev environment (1)
data-raw/
Show all practicesHide 2 practices
CRAN release process (2)
cran-comments.mdrevdep/
Lint, format, editor (1)
RStudio project
How this is detected·Detection ruleset v4 (2026-10-20)

Dependencies

Declared dependencies
8 external dependencies (excludes base and recommended)

Installing lutz adds 5 packages (3 with compiled code, 2.6 MB of source tarballs). Heaviest: Rcpp 1.8 MB, lubridate 420 KB, cpp11 298 KB.

Depends (1)
R >= 3.2
Imports (3)
LinkingTo (1)
Suggests (6)
Enhances (0)
none
Reverse dependencies
9direct
1indirect
Imports 9
Suggested by 4
Show all 13 packagesHide all 13 packages
Depends, Imports or LinkingTo, most downloaded first
Suggests, most downloaded first

People & History

People (2)
Author, Maintainer since 0.1.0 (2018)
Contributor · added in 0.3.0
Releases (5)

Pick two releases to compare their code metrics.

  • R
    R 4.6.0 released · 2026-04-24
  • R
    R 4.5.0 released · 2025-04-11
  • R
    R 4.4.0 released · 2024-04-24
  • 0.3.2Latest
    record
    2023-10-17 · current release · diff ↗
  • R
    R 4.3.0 released · 2023-04-21
  • R
    R 4.2.0 released · 2022-04-22
  • R
    R 4.1.0 released · 2021-05-18
  • R
    R 4.0.0 released · 2020-04-24
  • 0.3.1
    record
    2019-07-20 · diff ↗
  • 0.3.0
    record
    2019-07-14 · diff ↗ ·
    added 3 exports
    tz_list, tz_offset, tz_plot
  • R
    R 3.6.0 released · 2019-04-26
  • 0.2.0
    record
    2018-06-24 · diff ↗
  • R
    R 3.5.0 released · 2018-04-23
  • 0.1.0
    record
    2018-02-07
  • R
    R 3.4.0 released · 2017-04-21

Package metadata

First published
2018-02-07
Total releases
5 / 8 yrs
License
MIT + file LICENSE OSI
Minimum R
≥ 3.2
Download size
4.2 MB

Cite

Cite this package

Run in R for the authors' preferred citation:

citation("lutz")
Teucher, A., & Rudis, B. (2023). lutz: Look Up Time Zones of Point Coordinates (Version 0.3.2) [Computer software]. https://doi.org/10.32614/CRAN.package.lutz

This package has no citation file, so citation() returns this entry built from DESCRIPTION.

Cite the R Observatory

For a number measured here: a download total, a coverage figure, an archival date.

APA

Balamuta, J. J. (2026). R Observatory: Metrics for lutz version 0.3.2 [Data set]. HJJB, LLC. Data release v2026-10-25. https://doi.org/10.5281/zenodo.21843040

From data release v2026-10-25, which the citation names so these numbers can be found later. More on citing and the projects behind them.

Report a problem with this page →

Privacy choices

These apply to this browser and are stored on this device only. Nothing about your choice is sent to us.

Read the privacy policy