powered by
Does date time occur in the am or pm?
am(x)pm(x)
pm(x)
TRUE or FALSE depending on whether x occurs in the am or pm
a date-time object
x <- ymd("2012-03-26") am(x) pm(x)
Run the code above in your browser using DataLab