to_unixtime: Convert a Date or Datetime Object to Unix Datetime

View source: R/utils.R

to_unixtimeR 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.


chrisumphlett/zdeskR documentation built on Jan. 25, 2025, 9:45 p.m.