ic_char_datetime: Convert datetime object to character string

View source: R/ic_date.R

ic_char_datetimeR Documentation

Convert datetime object to character string

Description

Convert datetime object to character string

Usage

ic_char_datetime(x, zulu = FALSE)

Arguments

x

datetime object

zulu

is the datetime in Zulu time? FALSE by default, which means the calendar's current timezone is used.

Examples

x <- ic_datetime("20180809T160000")
ic_char_datetime(x) == "20180809T160000"
x <- ic_datetime("20180809T160000Z")
ic_char_datetime(x, zulu = TRUE) == "20180809T160000Z"
ic_char_date(as.Date("1985-12-26"))

calendar documentation built on May 29, 2024, 2:34 a.m.