Skip to content

lutz

Look Up Time Zones of Point Coordinates

v0.3.2 · Oct 17, 2023 · MIT + file LICENSE

Description

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.

Downloads

CRAN

1.7K

Last 30 days

2914th

4.6K

Last 90 days

30.5K

Last year

Trend: +15.1% (30d vs prior 30d)

r2u CRAN

38

Last 30 days

196

Last 90 days

856

Last year

Trend: -30.9% (30d vs prior 30d)

autoCRAN

5

Last 7 days

14

Last 30 days

0

All-time

autoCRAN-only: this name is served only by autoCRAN, so the count is exact.

conda-forge CRAN

58

Last 30 days

206

Last 90 days

206

Last year

Trend: -60.8% (30d vs prior 30d)

CRAN Check Status

13 OK
Show all 13 flavors
Flavor Status
r-devel-linux-x86_64-debian-clang OK
r-devel-linux-x86_64-debian-gcc OK
r-devel-linux-x86_64-fedora-clang OK
r-devel-linux-x86_64-fedora-gcc OK
r-devel-windows-x86_64 OK
r-oldrel-macos-arm64 OK
r-oldrel-macos-x86_64 OK
r-oldrel-windows-x86_64 OK
r-patched-linux-x86_64 OK
r-release-linux-x86_64 OK
r-release-macos-arm64 OK
r-release-macos-x86_64 OK
r-release-windows-x86_64 OK

Check History

OK 12 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Apr 25, 2026
NOTE 11 OK · 3 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Apr 22, 2026
NOTE r-oldrel-macos-arm64

installed package size

installed size is  6.0Mb
  sub-directories of 1Mb or more:
    R   5.0Mb
NOTE r-oldrel-macos-x86_64

installed package size

installed size is  6.0Mb
  sub-directories of 1Mb or more:
    R   5.0Mb
NOTE r-oldrel-windows-x86_64

installed package size

installed size is  5.2Mb
  sub-directories of 1Mb or more:
    R      4.0Mb
    libs   1.0Mb
ERROR 10 OK · 3 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE Apr 18, 2026
ERROR r-devel-windows-x86_64

whether package can be installed

Installation failed.
See 'd:/Rcompile/CRANpkg/local/4.6/lutz.Rcheck/00install.out' for details.
NOTE r-oldrel-macos-arm64

installed package size

installed size is  6.0Mb
  sub-directories of 1Mb or more:
    R   5.0Mb
NOTE r-oldrel-macos-x86_64

installed package size

installed size is  6.0Mb
  sub-directories of 1Mb or more:
    R   5.0Mb
NOTE r-oldrel-windows-x86_64

installed package size

installed size is  5.2Mb
  sub-directories of 1Mb or more:
    R      4.0Mb
    libs   1.0Mb
NOTE 11 OK · 3 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 10, 2026
NOTE r-oldrel-macos-arm64

installed package size

installed size is  6.0Mb
  sub-directories of 1Mb or more:
    R   5.0Mb
NOTE r-oldrel-macos-x86_64

installed package size

installed size is  6.0Mb
  sub-directories of 1Mb or more:
    R   5.0Mb
NOTE r-oldrel-windows-x86_64

installed package size

installed size is  5.2Mb
  sub-directories of 1Mb or more:
    R      4.0Mb
    libs   1.0Mb

Code intelligence has not been computed for this package yet.

Code

Structure

Lines of code

2,561

Files

31

Compiled share

46.4%

Has compiled src

Yes

Language breakdown

R 426 (16.6%)C/C++/src 1,188 (46.4%)Tests 766 (29.9%)Docs 181 (7.1%)

API

Exported functions

5

Internal functions

21

Recent export changes

v0.3.0+3 tz_list, tz_offset, tz_plot
v0.1.0+2 tz_lookup, tz_lookup_coords

Testing & CI

Has tests

Yes

Test-to-code ratio

1.80

testthat edition

CI present

No

CI type

[]

PR gated

No

Docs

Return-value doc rate

100%

\dontrun example ratio

0%

Roxygen coverage

100%

Has pkgdown

No

NEWS present

Yes

Health & Security signals

Informational signals; not verdicts.

on.exit coverage

Unsafe pattern score

0

Dep constraint coverage

0%

Secret pattern count

0

Bundled 3rd-party code

2 items

Portability & License

Min R version

3.2

System requirements

C++ standard

License

MIT + file LICENSE

License flags

SPDX valid, OSI approved

History

Versions

5

First release

2018-02-07

Latest release

2023-10-17

Avg cadence

261 days

Cold removal rate

Dep drift

4

LOC over versions

v0.1.0: 232 LOCv0.2.0: 438 LOCv0.3.0: 2,551 LOCv0.3.1: 2,564 LOCv0.3.2: 2,561 LOC

Per-file churn detail lives in the source pipeline: https://github.com/r-observatory/cran-code-metrics.

Reverse Dependencies (10)

Dependency Network

Dependencies Reverse dependencies Rcpp lubridate ARUtools CDSE ascotraceR bioRad finbif stationaRy weathR SunCalcMeeus photobiology spectator lutz

Version History

6 tracked
new 0.3.2 Mar 10, 2026
updated 0.3.2 ← 0.3.1 diff Oct 16, 2023
updated 0.3.1 ← 0.3.0 diff Jul 19, 2019
updated 0.3.0 ← 0.2.0 diff Jul 13, 2019
updated 0.2.0 ← 0.1.0 diff Jun 23, 2018
new 0.1.0 Feb 6, 2018