Learn R Programming

DIZtools (version 1.0.3)

format_posixct: Formats a given POSIXct timestamp without the need of manually specifing format parameters.

Description

See title.

Usage

format_posixct(x, lang = "en", date = TRUE, time = TRUE)

Value

(String) The formatted timestamp as a string.

Arguments

x

The POSIXct timestamp or a string to be automatically converted to a POSIXct timestamp.

lang

(Optional, String, Default = "en") The language of the result. Currently implemented: "en"/"de". If you supply another not yet implemented language here, "en" will be chosen automatically.

date

(Optional, Boolean, Default = TRUE) Should the date be part of the result string?

time

(Optional, Boolean, Default = TRUE) Should the time be part of the result string?