R: Time difference between two time zones

tz_time_diff {photobiology} | R Documentation

## Time difference between two time zones

### Description

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

### Usage

    tz_time_diff(when = lubridate::now(), tz.target = Sys.timezone(),
      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.

[Package photobiology version 0.9.21 Index]