Learn R Programming

⚠️There's a newer version (1.9.4) of this package.Take me there.

lubridate (version 0.2.4)

Make dealing with dates a little easier

Description

Lubridate makes it easier to work with dates and times by providing functions to identify and parse date-time data, extract and modify components of a date-time (years, months, days, hours, minutes, and seconds), perform accurate math on date-times, handle time zones and Daylight Savings Time. Lubridate has a consistent, memorable syntax, that makes working with dates fun instead of frustrating.

Copy Link

Version

Install

install.packages('lubridate')

Monthly Downloads

714,919

Version

0.2.4

License

GPL

Maintainer

Garrett Grolemund

Last Published

April 5th, 2011

Functions in lubridate (0.2.4)

int_end

Access and change the end date of an interval...
leap_year

Is a year a leap year?
sundays

Quickly create common epoch objects...
month

Get/set months component of a date-time.
floor_date

Round date-times down.
force_tz

Replace time zone to create new date-time...
is.period

Is x a period object?
DateCoercion

Convert every date method we know about to POSIXlt and POSIXct...
lakers

Lakers 2008-2009 basketball data set...
as.interval

Change an object to an interval.
int_start

Access and change the start date of an interval...
is.Date

Is x a Date object?
is.POSIXt

Is x a POSIXct or POSIXlt object?
is.difftime

Is x a difftime object?
am

Does date time occur in the am or pm?
ceiling_date

Round date-times up.
make_difftime

Makes a difftime object from a given number of seconds...
DateUpdate

Changes the components of a date object...
lubridate

Dates and times made easy with lubridate...
hour

Get/set hours component of a date-time.
second

Get/set seconds component of a date-time.
duration

Description of time span classes in lubridate.
today

The current date...
is.interval

Is x an interval object?
decimal_date

Converts a date to a decimal of its year.
add_dates

Adding date-time objects...
with_tz

Get date-time in a different time zone...
new_period

Create a period object.
subtract_dates

Subtracting date-time objects...
is.instant

Is x a date-time object?
wday

Get/set days component of a date-time.
now

The current time...
reclass_date

Convenience method to reclass dates post-modification.
hm

Create a period with the specified number of hours and minutes...
new_interval

Create an interval object.
round_date

Rounding for date-times.
dst

Get Daylight Savings Time indicator of a date-time.
as.period

Change an object to a period.
seconds

Quickly create relative timespans.
new_epoch

Create an epoch object...
is.timespan

Is x a length of time?
hms

Create a period with the specified hours, minutes, and seconds...
origin

1970-01-01 GMT...
tz

Get/set time zone component of a date-time.
parse_date

Change dates into a POSIXct format...
dseconds

Quickly create exact time spans.
ymd_hms

Parse dates that have hours, minutes, or seconds elements...
minute

Get/set minutes component of a date-time.
year

Get/set years component of a date-time.
new_duration

Create a duration object.
new_difftime

Create a difftime object.
pretty.dates

Computes attractive axis breaks for date-time data...
ms

Create a period with the specified number of minutes and seconds...
ymd

Parse dates according to the order that year, month, and day elements appear...
is.duration

Is x a duration object?
as.duration

Change an object to a duration (difftime).
add_epoch_to_date

Add epochs to dates...
yday

Get/set days component of a date-time.
week

Get/set weeks component of a date-time.