Does date time occur in the am or pm?
am(x) pm(x)
x
a date-time object
TRUE or FALSE depending on whether x occurs in the am or pm
Run examples
x <- ymd("2012-03-26") am(x) pm(x)