unixToDate: Unix timestamp to Date string.

Description Usage Arguments Value See Also Examples

View source: R/tools.R

Description

Returns a Unix timestamp with a date or datetime string. It also accepts a list or vector of strings and returns a converted list of Unix timestamps. Consult documentation here.

Usage

1
2
3
4
5
unixToDate(
  unix_timestamp,
  date_format = "%d-%m-%Y %H:%M:%S",
  timezone = "GMT"
)

Arguments

unix_timestamp

Unix timestamp as double. For example : 508133460 This can also be a vector of those timestamps or the timestamp column in your anchor.

date_format

The format of the date string.

timezone

String of timezone, Default GMT. To list possible timezones execute OlsonNames()

Value

A double unix timestamp or a vector of those doubles.

See Also

To see more details go to openblender.io

Examples

1
2
3
4
5
6
## Not run: 
df_anchor$timestamp <- openblender::dateToUnix(date_time_str=1602160634,
                                              date_format="%d.%m.%Y %H:%M:%S",
                                              timezone="US/Eastern")

## End(Not run)

openblender documentation built on Dec. 1, 2020, 3:01 a.m.