yesterday: Function to return the system's idea of yesterday.

View source: R/lubridate_supplements.R

yesterdayR Documentation

Function to return the system's idea of yesterday.

Description

Function to return the system's idea of yesterday.

Usage

yesterday(as_POSIXct = FALSE, tz = "UTC")

Arguments

as_POSIXct

Should the return be of POSIXct data type?

tz

If as_POSIXct is TRUE, what time zone should the return be in?

Value

Date or POSIXct vector with a length of 1.

Author(s)

Stuart K. Grange

Examples


# Date data type
yesterday()

# POSIXct data type
yesterday(as_POSIXct = TRUE)


skgrange/threadr documentation built on May 11, 2024, 12:16 p.m.