R includes two date-time classes -- POSIXct and POSIXlt -- see ?DateTimeClasses.
Pitfalls
With POSIXct, midnight will display only the date and time zone, though the full time is still stored.
Related topics
Date and Time
Specialized packages
lubridate