timeinfo: timeinfo

View source: R/time_tools.R

timeinfoR Documentation

timeinfo

Description

timeinfo

Usage

timeinfo(time = Sys.time())

time2num(time)

num2time(num)

time2str(time)

time_round(time = Sys.time())

guess_time(file, format = "%Y-%m-%d_%H00")

Arguments

time

POSIXct or time character, e.g. "1998-01-01 01:00:00"

num

difference of time to 1970-01-01 (in second), e.g. 1634365535.959902

Value

A data.table with the columns of:

  • year : int

  • month : int

  • day : int

  • hour : int

  • time : time character, e.g. "2021-10-16 14:25:35"

  • timenum : difference of time to 1970-01-01 (in second), e.g. 1634365535.959902

Examples

timeinfo()
time_round()

rpkgs/curlR documentation built on Jan. 30, 2023, 7:26 p.m.