Skip to contents

Format all Date and Datetime values in an object

Usage

sf_format_time(x)

# S3 method for class 'list'
sf_format_time(x)

# S3 method for class 'data.frame'
sf_format_time(x)

# S3 method for class 'Date'
sf_format_time(x)

# S3 method for class 'POSIXct'
sf_format_time(x)

# S3 method for class 'POSIXlt'
sf_format_time(x)

# S3 method for class 'POSIXt'
sf_format_time(x)

# S3 method for class 'character'
sf_format_time(x)

# S3 method for class 'numeric'
sf_format_time(x)

# S3 method for class 'logical'
sf_format_time(x)

# S3 method for class '`NULL`'
sf_format_time(x)

# S3 method for class 'AsIs'
sf_format_time(x)

Arguments

x

data which may or may not have values, elements, columns that represent a datetime. If so, each of those are cast to the ISO8601 standard per the requirements of Salesforce APIs.

Value

the same data object with datetime values formatted.

Note

This function is meant to be used internally. Only use when debugging.