tz_time_diff: Time difference between two time zones

Description Usage Arguments Value

View source: R/sun.calc.r

Description

Returns the time difference in hours between two time zones at a given instant in time.

Usage

1
2
3
4
5
tz_time_diff(
  when = lubridate::now(),
  tz.target = lubridate::tz(when),
  tz.reference = "UTC"
)

Arguments

when

datetime A time instant

tz.target, tz.reference

character Two time zones using names recognized by functions from package 'lubridate'

Value

A numeric value.


photobiology documentation built on Aug. 28, 2020, 1:11 a.m.