lubridate: Make Dealing with Dates a Little Easier

Functions to work with date-times and time-spans: fast and user friendly parsing of date-time data, extraction and updating of components of a date-time (years, months, days, hours, minutes, and seconds), algebraic manipulation on date-time and time-span objects. The 'lubridate' package has a consistent and memorable syntax that makes working with dates easy and fun.

AuthorGarrett Grolemund [aut], Vitalie Spinu [aut, cre], Hadley Wickham [aut], Ian Lyttle [ctb], Imanuel Constigan [ctb], Jason Law [ctb], Doug Mitarotonda [ctb], Joseph Larmarange [ctb], Jonathan Boiser [ctb], Chel Hee Lee [ctb]
Date of publication2016-09-13 13:11:52
MaintainerVitalie Spinu <spinuvit@gmail.com>
LicenseGPL-2
Version1.6.0

View on CRAN

Man pages

am: Does date time occur in the am or pm?

as_date: Convert an object to a date or date-time

as.duration: Change an object to a duration.

as.interval: Change an object to an 'interval'.

as.period: Change an object to a period.

date: Get/set Date component of a date-time.

DateCoercion: Convert a variety of date-time classes to POSIXlt and POSIXct

date_decimal: Converts a decimal to a date.

DateUpdate: Changes the components of a date object

day: Get/set days component of a date-time.

days_in_month: Get the number of days in the month of a date-time.

decimal_date: Converts a date to a decimal of its year.

Deprecated: Deprecated function in 'lubridate' package

dst: Get Daylight Savings Time indicator of a date-time.

duration: Create a duration object.

Duration-class: Duration class

fit_to_timeline: Fit a POSIXlt date-time to the timeline

force_tz: Replace time zone to create new date-time

guess_formats: Guess formats from the supplied date-time character vector.

hidden_aliases: Internal page for hidden aliases

hms: Create a period with the specified hours, minutes, and...

hour: Get/set hours component of a date-time.

interval: Utilities for creation and manipulation of 'Interval'...

Interval-class: Interval class

is.Date: Is x a Date object?

is.difftime: Is x a difftime object?

is.instant: Is x a date-time object?

is.POSIXt: Is x a POSIXct or POSIXlt object?

is.timespan: Is x a length of time?

lakers: Lakers 2008-2009 basketball data set

leap_year: Is a year a leap year?

lubridate-package: Dates and times made easy with lubridate

make_datetime: Efficient creation of date-times from numeric representations

make_difftime: Create a difftime object.

minute: Get/set minutes component of a date-time.

month: Get/set months component of a date-time.

mplus: Add and subtract months to a date without exceeding the last...

now: The current time

origin: 1970-01-01 UTC

parse_date_time: Parse character and numeric date-time vectors with user...

period: Create a period object.

Period-class: Period class

period_to_seconds: Contrive a period to/from a given number of seconds.

pretty_dates: Computes attractive axis breaks for date-time data

quarter: Get the fiscal quarter and semester of a date-time.

quick_durations: Quickly create duration objects.

quick_periods: Quickly create period objects.

reclass_date: Convenience method to reclass dates post-modification.

reclass_timespan: Convenience method to reclass timespans post-modification.

rollback: Roll back date to last day of previous month

round_date: Round, floor and ceiling methods for date-time objects.

second: Get/set seconds component of a date-time.

stamp: Format dates and times based on human-friendly templates.

time_length: Compute the exact length of a time span.

timespan: Description of time span classes in lubridate.

Timespan-class: Timespan class

today: The current date

tz: Get/set time zone component of a date-time.

week: Get/set weeks component of a date-time.

within-interval: Tests whether a date or interval falls within an interval

with_tz: Get date-time in a different time zone

year: Get/set years component of a date-time.

ymd: Parse dates according to the order in that year, month, and...

ymd_hms: Parse dates that have hours, minutes, or seconds elements.

Functions

\%--\% Man page
add_with_rollback Man page
am Man page
-,ANY,Duration-method Man page
*,ANY,Duration-method Man page
*,ANY,Interval-method Man page
-,ANY,Period Man page
*,ANY,Period Man page
-,ANY,Period-method Man page
*,ANY,Period-method Man page
Arith,ANY,Interval-method Man page
Arith,ANY,Period-method Man page
Arith,Duration,Period-method Man page
Arith,Interval,ANY-method Man page
Arith,Period,ANY-method Man page
Arith,Period,Duration-method Man page
as.character,Duration-method Man page
as.character,Interval-method Man page
as.character,Period-method Man page
as_date Man page
as_date,numeric-method Man page
as_date,POSIXt-method Man page
as_datetime Man page
as_datetime,ANY-method Man page
as_datetime,numeric-method Man page
as_datetime,POSIXt-method Man page
as.difftime,Duration-method Man page
as.difftime,Interval-method Man page
as.difftime,Period-method Man page
as.duration Man page
as.duration,character-method Man page
as.duration,difftime-method Man page
as.duration,Duration-method Man page
as.duration,Interval-method Man page
as.duration,logical-method Man page
as.duration,numeric-method Man page
as.duration,Period-method Man page
as.interval Man page
as.interval,difftime-method Man page
as.interval,Duration-method Man page
as.interval,Interval-method Man page
as.interval,logical-method Man page
as.interval,numeric-method Man page
as.interval,Period-method Man page
as.interval,POSIXt-method Man page
as.numeric,Duration-method Man page
as.numeric,Interval-method Man page
as.numeric,Period-method Man page
as.period Man page
as.period,character-method Man page
as.period,difftime-method Man page
as.period,Duration-method Man page
as.period,Interval-method Man page
as.period,logical-method Man page
as.period,numeric-method Man page
as.period,Period-method Man page
c,Duration-method Man page
ceiling_date Man page
c,Interval-method Man page
Compare,ANY,Duration-method Man page
Compare,character,Duration-method Man page
Compare,character,Period-method Man page
Compare,difftime,Duration-method Man page
Compare,Duration,ANY-method Man page
Compare,Duration,character-method Man page
Compare,Duration,Duration-method Man page
Compare,Duration,Period-method Man page
Compare,Period,character-method Man page
Compare,Period,Duration-method Man page
Compare,Period,numeric-method Man page
Compare,Period,Period-method Man page
c,Period-method Man page
date Man page
date<- Man page
DateCoercion Man page
date_decimal Man page
+,Date,Duration-method Man page
-,Date,Interval Man page
-,Date,Interval-method Man page
+,Date,Interval-method Man page
date<-,Period-method Man page
date,Period-method Man page
+,Date,Period-method Man page
DateUpdate Man page
day Man page
day<- Man page
day<-,Period-method Man page
day,Period-method Man page
days Man page
days_in_month Man page
ddays Man page
decimal_date Man page
Deprecated-lubridate Man page
dhours Man page
/,difftime,Duration-method Man page
+,difftime,Duration-method Man page
/,difftime,Interval-method Man page
+,difftime,Interval-method Man page
/,difftime,Period-method Man page
+,difftime,Period-method Man page
\%/\%,difftime,Timespan-method Man page
dmicroseconds Man page
dmilliseconds Man page
dminutes Man page
dmy Man page
dmy_h Man page
dmy_hm Man page
dmy_hms Man page
dnanoseconds Man page
dpicoseconds Man page
dseconds Man page
dst Man page
duration Man page
[<-,Duration,ANY,ANY,ANY-method Man page
[[<-,Duration,ANY,ANY,ANY-method Man page
-,Duration,ANY-method Man page
*,Duration,ANY-method Man page
Duration-class Man page
+,Duration,Date-method Man page
/,Duration,difftime-method Man page
+,Duration,difftime-method Man page
/,Duration,Duration-method Man page
\%\%,Duration,Duration-method Man page
+,Duration,Duration-method Man page
-,Duration,Interval Man page
-,Duration,Interval-method Man page
/,Duration,Interval-method Man page
\%\%,Duration,Interval-method Man page
+,Duration,Interval-method Man page
[,Duration-method Man page
[[,Duration-method Man page
$<-,Duration-method Man page
$,Duration-method Man page
-,Duration,missing-method Man page
/,Duration,numeric-method Man page
+,Duration,numeric-method Man page
<=,Duration,Period Man page
<,Duration,Period Man page
==,Duration,Period Man page
>=,Duration,Period Man page
>,Duration,Period Man page
!=,Duration,Period Man page
<=,Duration,Period-method Man page
<,Duration,Period-method Man page
==,Duration,Period-method Man page
>=,Duration,Period-method Man page
>,Duration,Period-method Man page
!=,Duration,Period-method Man page
/,Duration,Period-method Man page
\%\%,Duration,Period-method Man page
+,Duration,Period-method Man page
+,Duration,POSIXct-method Man page
+,Duration,POSIXlt-method Man page
dweeks Man page
dyears Man page
dym Man page
edays Man page
ehours Man page
emicroseconds Man page
emilliseconds Man page
eminutes Man page
enanoseconds Man page
epicoseconds Man page
eseconds Man page
eweeks Man page
eyears Man page
fast_strptime Man page
fit_to_timeline Man page
floor_date Man page
force_tz Man page
guess_formats Man page
here Man page
hidden_aliases Man page
hm Man page
hms Man page
hour Man page
hour<- Man page
hour<-,Period-method Man page
hour,Period-method Man page
hours Man page
instant Man page
instants Man page
int_aligns Man page
int_diff Man page
int_end Man page
int_end<- Man page
intersect,Interval,Interval-method Man page
interval Man page
[<-,Interval,ANY,ANY,ANY-method Man page
[[<-,Interval,ANY,ANY,ANY-method Man page
*,Interval,ANY-method Man page
Interval-class Man page
-,Interval,Date Man page
-,Interval,Date-method Man page
+,Interval,Date-method Man page
/,Interval,difftime-method Man page
+,Interval,difftime-method Man page
\%\%,Interval,Duration Man page
/,Interval,Duration-method Man page
\%\%,Interval,Duration-method Man page
+,Interval,Duration-method Man page
-,Interval,Interval Man page
\%\%,Interval,Interval Man page
-,Interval,Interval-method Man page
/,Interval,Interval-method Man page
\%\%,Interval,Interval-method Man page
+,Interval,Interval-method Man page
[,Interval-method Man page
[[,Interval-method Man page
$<-,Interval-method Man page
$,Interval-method Man page
-,Interval,missing-method Man page
-,Interval,numeric Man page
-,Interval,numeric-method Man page
/,Interval,numeric-method Man page
+,Interval,numeric-method Man page
\%\%,Interval,Period Man page
/,Interval,Period-method Man page
\%\%,Interval,Period-method Man page
+,Interval,Period-method Man page
-,Interval,POSIXct Man page
-,Interval,POSIXct-method Man page
+,Interval,POSIXct-method Man page
-,Interval,POSIXlt Man page
-,Interval,POSIXlt-method Man page
+,Interval,POSIXlt-method Man page
int_flip Man page
int_length Man page
int_overlaps Man page
int_shift Man page
int_standardize Man page
int_start Man page
int_start<- Man page
is.Date Man page
is.difftime Man page
is.duration Man page
is.instant Man page
is.interval Man page
isoweek Man page
isoyear Man page
is.period Man page
is.POSIXct Man page
is.POSIXlt Man page
is.POSIXt Man page
is.timepoint Man page
is.timespan Man page
lakers Man page
leap_year Man page
lubridate Man page
lubridate-package Man page
\%m-\% Man page
\%m+\% Man page
m- Man page
m+ Man page
make_date Man page
make_datetime Man page
make_difftime Man page
\%m-\%,ANY,ANY-method Man page
\%m+\%,ANY,ANY-method Man page
\%m-\%,ANY,Duration-method Man page
\%m+\%,ANY,Duration-method Man page
\%m-\%,ANY,Interval-method Man page
\%m+\%,ANY,Interval-method Man page
\%m-\%,ANY,Period-method Man page
\%m+\%,ANY,Period-method Man page
mday Man page
mday<- Man page
\%m-\%,Duration,ANY-method Man page
\%m+\%,Duration,ANY-method Man page
mdy Man page
mdy_h Man page
mdy_hm Man page
mdy_hms Man page
microseconds Man page
milliseconds Man page
\%m-\%,Interval,ANY-method Man page
\%m+\%,Interval,ANY-method Man page
minute Man page
minute<- Man page
minute<-,Period-method Man page
minute,Period-method Man page
minutes Man page
month Man page
month<- Man page
month<-,Period-method Man page
month,Period-method Man page
months.numeric Man page
\%m-\%,Period,ANY-method Man page
\%m+\%,Period,ANY-method Man page
ms Man page
myd Man page
nanoseconds Man page
new_difftime Man page
new_duration Man page
new_interval Man page
new_period Man page
now Man page
/,numeric,Duration-method Man page
+,numeric,Duration-method Man page
-,numeric,Interval Man page
-,numeric,Interval-method Man page
/,numeric,Interval-method Man page
+,numeric,Interval-method Man page
<=,numeric,Period Man page
<,numeric,Period Man page
==,numeric,Period Man page
>=,numeric,Period Man page
>,numeric,Period Man page
!=,numeric,Period Man page
/,numeric,Period Man page
<=,numeric,Period-method Man page
<,numeric,Period-method Man page
==,numeric,Period-method Man page
>=,numeric,Period-method Man page
>,numeric,Period-method Man page
!=,numeric,Period-method Man page
/,numeric,Period-method Man page
+,numeric,Period-method Man page
olson_time_zones Man page
origin Man page
parse_date_time Man page
parse_date_time2 Man page
period Man page
*,Period,ANY Man page
[<-,Period,ANY,ANY,Period-method Man page
[[<-,Period,ANY,ANY,Period-method Man page
-,Period,ANY-method Man page
*,Period,ANY-method Man page
Period-class Man page
+,Period,Date-method Man page
/,Period,difftime-method Man page
+,Period,difftime-method Man page
<=,Period,Duration Man page
<,Period,Duration Man page
==,Period,Duration Man page
>=,Period,Duration Man page
>,Period,Duration Man page
!=,Period,Duration Man page
\%\%,Period,Duration Man page
<=,Period,Duration-method Man page
<,Period,Duration-method Man page
==,Period,Duration-method Man page
>=,Period,Duration-method Man page
>,Period,Duration-method Man page
!=,Period,Duration-method Man page
/,Period,Duration-method Man page
\%\%,Period,Duration-method Man page
+,Period,Duration-method Man page
-,Period,Interval Man page
\%\%,Period,Interval Man page
-,Period,Interval-method Man page
/,Period,Interval-method Man page
\%\%,Period,Interval-method Man page
+,Period,Interval-method Man page
[,Period-method Man page
[[,Period-method Man page
$<-,Period-method Man page
$,Period-method Man page
-,Period,missing Man page
-,Period,missing-method Man page
<=,Period,numeric Man page
<,Period,numeric Man page
==,Period,numeric Man page
>=,Period,numeric Man page
>,Period,numeric Man page
!=,Period,numeric Man page
<=,Period,numeric-method Man page
<,Period,numeric-method Man page
==,Period,numeric-method Man page
>=,Period,numeric-method Man page
>,Period,numeric-method Man page
!=,Period,numeric-method Man page
/,Period,numeric-method Man page
+,Period,numeric-method Man page
<=,Period,Period Man page
<,Period,Period Man page
==,Period,Period Man page
>=,Period,Period Man page
>,Period,Period Man page
!=,Period,Period Man page
\%\%,Period,Period Man page
<=,Period,Period-method Man page
<,Period,Period-method Man page
==,Period,Period-method Man page
>=,Period,Period-method Man page
>,Period,Period-method Man page
!=,Period,Period-method Man page
/,Period,Period-method Man page
\%\%,Period,Period-method Man page
+,Period,Period-method Man page
+,Period,POSIXct-method Man page
+,Period,POSIXlt-method Man page
period_to_seconds Man page
picoseconds Man page
pm Man page
+,POSIXct,Duration-method Man page
-,POSIXct,Interval Man page
-,POSIXct,Interval-method Man page
+,POSIXct,Interval-method Man page
+,POSIXct,Period-method Man page
+,POSIXlt,Duration-method Man page
-,POSIXlt,Interval Man page
-,POSIXlt,Interval-method Man page
+,POSIXlt,Interval-method Man page
+,POSIXlt,Period-method Man page
pretty_dates Man page
qday Man page
qday<- Man page
quarter Man page
quick_durations Man page
quick_periods Man page
reclass_date Man page
reclass_timespan Man page
reclass_timespan,ANY,difftime-method Man page
reclass_timespan,ANY,Duration-method Man page
reclass_timespan,ANY,Interval-method Man page
reclass_timespan,ANY,Period-method Man page
rep,Duration-method Man page
rep,Interval-method Man page
rep,Period-method Man page
rollback Man page
round_date Man page
second Man page
second<- Man page
second<-,Period-method Man page
second,Period-method Man page
seconds Man page
seconds_to_period Man page
semester Man page
setdiff,Interval,Interval-method Man page
show,Duration-method Man page
show,Interval-method Man page
show,Period-method Man page
stamp Man page
stamp_date Man page
stamp_time Man page
time_length Man page
time_length,Interval-method Man page
timespan Man page
Timespan-class Man page
timespans Man page
*,Timespan,Timespan-method Man page
\%/\%,Timespan,Timespan-method Man page
today Man page
tz Man page
tz<- Man page
union,Interval,Interval-method Man page
update.POSIXt Man page
wday Man page
wday<- Man page
week Man page
week<- Man page
weeks Man page
\%within\% Man page
\%within\%,ANY,Interval-method Man page
\%within\%,Interval,Interval-method Man page
with_tz Man page
yday Man page
yday<- Man page
ydm Man page
ydm_h Man page
ydm_hm Man page
ydm_hms Man page
year Man page
year<- Man page
year<-,Period-method Man page
year,Period-method Man page
years Man page
ymd Man page
ymd_h Man page
ymd_hm Man page
ymd_hms Man page
yq Man page

Files

lubridate
lubridate/po
lubridate/po/R-lubridate.pot
lubridate/po/R-it.po
lubridate/po/R-ko.po
lubridate/inst
lubridate/inst/CITATION
lubridate/inst/doc
lubridate/inst/doc/lubridate.Rmd
lubridate/inst/doc/lubridate.R
lubridate/inst/doc/lubridate.html
lubridate/tests
lubridate/tests/testthat.R
lubridate/tests/testthat
lubridate/tests/testthat/test-ops-integer-division.R
lubridate/tests/testthat/test-utilities.R
lubridate/tests/testthat/test-ops-addition.R
lubridate/tests/testthat/test-ops-subtraction.R
lubridate/tests/testthat/test-daylight-savings.R
lubridate/tests/testthat/test-instants.R
lubridate/tests/testthat/test-Dates.R
lubridate/tests/testthat/test-ops-division.R
lubridate/tests/testthat/test-round.R
lubridate/tests/testthat/test-settors.R
lubridate/tests/testthat/test-ops-modulo.R
lubridate/tests/testthat/test-ops-multiplication.R
lubridate/tests/testthat/test-timezones.R
lubridate/tests/testthat/test-accessors.R
lubridate/tests/testthat/test-durations.R
lubridate/tests/testthat/test-POSIXt.R
lubridate/tests/testthat/test-decimal-date.R
lubridate/tests/testthat/test-stamp.R
lubridate/tests/testthat/test-timespans.R
lubridate/tests/testthat/test-rollback.R
lubridate/tests/testthat/test-update.R
lubridate/tests/testthat/test-pretty.R
lubridate/tests/testthat/test-intervals.R
lubridate/tests/testthat/test-periods.R
lubridate/tests/testthat/test-difftimes.R
lubridate/tests/testthat/test-parsers.R
lubridate/tests/testthat/test-guess.R
lubridate/tests/testthat/test-ops-compare.R
lubridate/tests/testthat/test-am-pm.R
lubridate/src
lubridate/src/constants.h
lubridate/src/utils.c
lubridate/src/utils.h
lubridate/src/tparse.c
lubridate/src/datetime.c
lubridate/src/period.c
lubridate/NAMESPACE
lubridate/NEWS.md
lubridate/data
lubridate/data/lakers.rda
lubridate/R
lubridate/R/hidden.r
lubridate/R/ops-addition.r
lubridate/R/ops-subtraction.r
lubridate/R/periods.r
lubridate/R/difftimes.r
lubridate/R/am-pm.r
lubridate/R/ops-modulo.r
lubridate/R/accessors-month.r
lubridate/R/timespans.r
lubridate/R/accessors-date.R
lubridate/R/accessors-quarter.r
lubridate/R/ops-integer-division.r
lubridate/R/POSIXt.r
lubridate/R/accessors-dst.r
lubridate/R/constants.r
lubridate/R/accessors-second.r
lubridate/R/ops-multiplication.r
lubridate/R/accessors-day.r
lubridate/R/accessors-hour.r
lubridate/R/durations.r
lubridate/R/stamp.r
lubridate/R/accessors-minute.r
lubridate/R/Dates.r
lubridate/R/coercion.r
lubridate/R/help.r
lubridate/R/leap-years.r
lubridate/R/time-zones.r
lubridate/R/guess.r
lubridate/R/update.r
lubridate/R/util.r
lubridate/R/accessors-week.r
lubridate/R/decimal-dates.r
lubridate/R/numeric.r
lubridate/R/instants.r
lubridate/R/round.r
lubridate/R/ops-%m+%.r
lubridate/R/parse.r
lubridate/R/accessors-year.r
lubridate/R/data.r
lubridate/R/ops-compare.r
lubridate/R/deprecated.r
lubridate/R/pretty.r
lubridate/R/ops-division.r
lubridate/R/intervals.r
lubridate/R/accessors-tz.r
lubridate/vignettes
lubridate/vignettes/lubridate.Rmd
lubridate/README.md
lubridate/MD5
lubridate/build
lubridate/build/vignette.rds
lubridate/DESCRIPTION
lubridate/man
lubridate/man/dst.Rd lubridate/man/timespan.Rd lubridate/man/year.Rd lubridate/man/hms.Rd lubridate/man/reclass_date.Rd lubridate/man/guess_formats.Rd lubridate/man/pretty_dates.Rd lubridate/man/decimal_date.Rd lubridate/man/origin.Rd lubridate/man/round_date.Rd lubridate/man/stamp.Rd lubridate/man/Timespan-class.Rd lubridate/man/as.period.Rd lubridate/man/quick_durations.Rd lubridate/man/ymd_hms.Rd lubridate/man/hidden_aliases.Rd lubridate/man/quarter.Rd lubridate/man/DateUpdate.Rd lubridate/man/second.Rd lubridate/man/is.POSIXt.Rd lubridate/man/lakers.Rd lubridate/man/days_in_month.Rd lubridate/man/Deprecated.Rd lubridate/man/is.timespan.Rd lubridate/man/make_difftime.Rd lubridate/man/interval.Rd lubridate/man/fit_to_timeline.Rd lubridate/man/is.difftime.Rd lubridate/man/week.Rd lubridate/man/tz.Rd lubridate/man/date_decimal.Rd lubridate/man/period_to_seconds.Rd lubridate/man/lubridate-package.Rd lubridate/man/Interval-class.Rd lubridate/man/day.Rd lubridate/man/month.Rd lubridate/man/reclass_timespan.Rd lubridate/man/is.instant.Rd lubridate/man/now.Rd lubridate/man/am.Rd lubridate/man/hour.Rd lubridate/man/as.interval.Rd lubridate/man/today.Rd lubridate/man/is.Date.Rd lubridate/man/leap_year.Rd lubridate/man/force_tz.Rd lubridate/man/rollback.Rd lubridate/man/with_tz.Rd lubridate/man/Period-class.Rd lubridate/man/duration.Rd lubridate/man/as_date.Rd lubridate/man/mplus.Rd lubridate/man/date.Rd lubridate/man/minute.Rd lubridate/man/as.duration.Rd lubridate/man/parse_date_time.Rd lubridate/man/make_datetime.Rd lubridate/man/time_length.Rd lubridate/man/DateCoercion.Rd lubridate/man/period.Rd lubridate/man/quick_periods.Rd lubridate/man/Duration-class.Rd lubridate/man/within-interval.Rd lubridate/man/ymd.Rd

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.