dateTOmillisecond: Transform a vector of date to a vector of millisecond.

Description Usage Arguments Details

Description

This function is to transform a period of time in date to millisecond according to the origin date and the format of date.

Usage

1
2
dateTOmillisecond(date, origin = "1970-01-01", format = "%Y-%m-%d",
  interval = TRUE)

Arguments

date

A character vector represent a period of time from date[1] to date[2].

origin

A point of time which set to be zero in millisecond.

format

A format for date and origin arguments.

interval

A logical argument which equals to TRUE by default when the function transfer an period of dates to millisecond. When interval=FALSE, the function returns the last minute of every elements of date to millisecons.

Details

A vector of size two represent a period of time. The start date of the period will be transform to the first millisecond of the date and the end of the period to the last millisecond.


RWildbook documentation built on May 1, 2019, 8:07 p.m.