chron2datestamp: chron2datestamp

Description Usage Arguments Value Author(s) See Also Examples

View source: R/chron2datestamp.r

Description

This function converts dates from chron:: format and append the time as a fraction, for use as a timestamp

Usage

1
chron2datestamp(x, res = 12)

Arguments

x

= the date

res

= the time will be calculated as a fraction of this value (defaults to 12)

Value

character vector

Author(s)

unknown, <unknown>@dfo-mpo.gc.ca

See Also

Other date functions: convert.datecodes, date_picker, dayofyear, get.day, get_day

Examples

1
2
3
4
5
6
7
8
require(chron)
t1<- chron(dates =  dates(c("02/27/92")), times =  "08:00:00")
chron2datestamp(t1,100)
[1] "02/27/92.33"

t2<- chron(dates =  dates(c("02/27/92")), times =  "12:00:00")
chron2datestamp(t2,10)
[1] "02/27/92.5"

Beothuk/bio.utilities documentation built on May 5, 2019, 1:39 p.m.