Learn R Programming

lubridate (version 1.9.4)

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

Description

Does date time occur in the am or pm?

Usage

am(x)

pm(x)

Value

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

Arguments

x

a date-time object

Examples

Run this code
x <- ymd("2012-03-26")
am(x)
pm(x)

Run the code above in your browser using DataLab