Date & time handling¶
There are several classes and packages available for handling dates & times:
Date
Dateclass (recommended), fractional number of days since Unix epochIDateclass, integer number of days since Unix epoch, defined by thedata.tablepackage (for use in data.tables)
Time
ITimeclass, from thedata.tablepackagehmsclass, from thehmspackage
Datetime
POSIXctclass (recommended): stores datetime as the number of seconds since Unix epochPOSIXltclass: stores datetime as separate y/m/d/h/m/s componentsPOSIXtbase class
Config¶
| Action | Code | Details |
|---|---|---|
| Set timezone for session |
|
Extract¶
| Action | Code | Details |
|---|---|---|
| Get system time-zone region |
|
Warning: OS-specific output; check the documentation! |