to_unixtime {zdeskR}R Documentation

Convert a Date or Datetime Object to Unix Datetime

Description

This is a general purpose helper function for this package useful in converting a time stamp to unix time.

Usage

to_unixtime(x)

Arguments

x

Date or datetime string or object.

Details

This function is inspired/borrowed from a github page by Neal Richardson who did a similar work to convert the general date time format to unix time.

The unix time stamp is a way to track time as a running total of seconds. This count starts at the Unix Epoch on January 1st, 1970 at UTC. Therefore, the unix time stamp is merely the number of seconds between a particular date and the Unix Epoch.

Value

Integer vector with unix time stamp.


[Package zdeskR version 0.6.0 Index]