Date2EpochMilli {Rthingsboard}R Documentation

Convert a date into an epoch in milliseconds

Description

This function allows to convert epoch timestamp in seconds to an epoch in milliseconds

Usage

Date2EpochMilli(ts)

## S3 method for class 'POSIXt'
Date2EpochMilli(ts)

## S3 method for class 'numeric'
Date2EpochMilli(ts)

Arguments

ts

a numeric representing an epoch in seconds or a POSIXt date

Value

a character of the epoch in milliseconds

Examples

Date2EpochMilli(as.numeric(Sys.time()))


[Package Rthingsboard version 0.2.7 Index]