R: Time units since Unix Epoch

units_since {tsibble} | R Documentation

## Time units since Unix Epoch

### Description

Time units since Unix Epoch

### Usage

    units_since(x)

### Arguments

`x` | An object of `POSIXct`, `Date`, `yearweek`, `yearmonth`, `yearquarter`.

### Details

origin:

- `POSIXct`: 1970-01-01 00:00:00

- `Date`: 1970-01-01

- `yearweek`: 1970 W01 (i.e. 1969-12-29)

- `yearmonth`: 1970 Jan

- `yearquarter`: 1970 Qtr1

### Examples

    units_since(x = yearmonth(2012 + (0:11) / 12))

[Package tsibble version 0.6.2 Index]