How do you work with dates and times in R using Date, POSIXct, and the lubridate package?
Role: Data Scientist
Category: Data Manipulation (SQL/Python)
Difficulty: easy
Interview Round: Other
Overview: Asks how R represents dates and date-times with Date, POSIXct and POSIXlt, and how the lubridate package handles parsing, extraction and arithmetic. It tests time zone handling, the difference between periods and durations, and the date pitfalls that show up in real analysis code.