Learn R Programming

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

lubridate (version 0.2.1)

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.1

License

GPL

Maintainer

Hadley Wickham

Last Published

November 3rd, 2010

Functions in lubridate (0.2.1)

dseconds

Quickly create exact time spans.
am

Does date time occur in the am or pm?
ceiling_date

Round date-times up.
is.timespan

Is x a length of time?
sundays

Quickly create common epoch objects...
lakers

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

Change an object to a duration (difftime).
round_date

Rounding for date-times.
as.interval

Change an object to an interval.
now

The current time...
second

Get/set seconds component of a date-time.
is.period

Is x a period object?
with_tz

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

Converts a date to a decimal of its year.
hour

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

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

Description of time span classes in lubridate.
add_epoch_to_date

Add epochs to dates...
dst

Get Daylight Savings Time indicator of a date-time.
reclass_date

Convenience method to reclass dates post-modification.
is.POSIXt

Is x a POSIXct or POSIXlt object?
yday

Get/set days component of a date-time.
is.instant

Is x a date-time object?
parse_date

Change dates into a POSIXct format...
seconds

Quickly create relative timespans.
new_difftime

Create a difftime object.
floor_date

Round date-times down.
year

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

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

Changes the components of a date object...
end

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

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

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

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

Is a year a leap year?
today

The current date...
is.duration

Is x a duration object?
as.period

Change an object to a period.
new_interval

Create an interval object.
minute

Get/set minutes component of a date-time.
is.interval

Is x an interval object?
force_tz

Replace time zone to create new date-time...
DateCoercion

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

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

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

Create an epoch object...
is.difftime

Is x a difftime object?
new_duration

Create a duration object.
week

Get/set weeks component of a date-time.
is.Date

Is x a Date object?
new_period

Create a period object.
tz

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

Access and change the start date of an interval...
origin

1970-01-01 GMT...
pretty.dates

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

Adding date-time objects...
ymd

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

Subtracting date-time objects...
int_start

Access and change the start date of an interval...
int_end

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

Dates and times made easy with lubridate...