dateTOmillisecond {RWildbook} | R Documentation |
Transform a vector of date to a vector of millisecond.
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
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.
[Package RWildbook version 0.9.3 Index]