R/time.R

Defines functions unix_time

# Returns a date value, given the number of seconds since Jan 1, 1970.
unix_time <- function(sec, nsec = 0) {
  time <- ISOdatetime(1970, 1, 1, 0, 0, 0, tz = "GMT") + sec
  return(time)
}

Try the paws.common package in your browser

Any scripts or data that you put into this service are public.

paws.common documentation built on Nov. 12, 2023, 1:08 a.m.