am: Does date time occur in the am or pm?

Description Usage Arguments Value Examples

View source: R/am-pm.r

Description

Does date time occur in the am or pm?

Usage

1
2
3
am(x)

pm(x)

Arguments

x

a date-time object

Value

TRUE or FALSE depending on whether x occurs in the am or pm

Examples

1
2
3
x <- ymd("2012-03-26")
am(x)
pm(x)

Example output

Attaching package: 'lubridate'

The following object is masked from 'package:base':

    date

[1] TRUE
[1] FALSE

lubridate documentation built on Feb. 26, 2021, 5:09 p.m.