Skip to contents

Calculate an approximation of local hour

Usage

obs_addltime(
  dt,
  timeUTC = "timeUTC",
  utc2lt = "site_utc2lst",
  longitude = "longitude",
  tz = "UTC"
)

Arguments

dt

data.table

timeUTC

Character indicating the Time column as POSIXct

utc2lt

Character indicating the integer column to convert to local time if available

longitude

Character indicating the column with the lingitude

tz

Timezone, default "UTC"

Value

data.table with local time columns

Note

time depending n longitude is by John Miller (GML/NOAA)

See also

Other time: obs_addstime(), obs_addtime()

Examples

{
if (FALSE) { # \dontrun{
# Do not run
} # }
}