formatdate: Date Converter

View source: R/strings_utils.R

formatdateR Documentation

Date Converter

Description

Formats date.

Usage

formatdate(
  x,
  iso = FALSE,
  tryFormats = c("%m/%d/%Y %I:%M:%S %p", "%d/%m/%Y %H:%M:%S",
    "%Y:%m:%d %H:%M:%S", "%Y-%m-%dT%H:%M:%SZ"),
  tz = "UTC"
)

Arguments

x

a string.

iso

whether returned value should be ISO8601. Default is FALSE.

tryFormats

format to try. See format.Date. Default is c("%m/%d/%Y %I:%M:%S %p", "%d/%m/%Y %H:%M:%S", "%Y:%m:%d %H:%M:%S", "%Y-%m-%dT%H:%M:%SZ").

tz

time zone name. See format.Date. Default is "UTC".

Value

formatted date


gitdemont/IFC documentation built on Feb. 20, 2025, 12:55 a.m.