lubridate (version 0.2.4)

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

Description

Does date time occur in the am or pm?

Usage

am(x)

Arguments

x
a date-time object

Value

  • TRUE or FALSE depending on whethe x occurs in the am or pm

Examples

Run this code
x <- now()
am(x) 
pm(x)

Run the code above in your browser using DataCamp Workspace