lubridate v1.3.2

0

Monthly downloads

0th

Percentile

Make dealing with dates a little easier

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.

Functions in lubridate

Name Description
duration Create a duration object.
date_decimal Converts a decimal to a date.
int_diff Extract the intervals within a vector of date-times
minute Get/set minutes component of a date-time.
is.instant Is x a date-time object?
guess_formats Guess formats from the supplied date-time character vector.
here The current time in your local timezone
period Create a period object.
tz Get/set time zone component of a date-time.
seconds Quickly create relative timespans.
month Get/set months component of a date-time.
sundays Quickly create common epoch objects
stamp Format dates and times based on human-friendly templates.
as.period Change an object to a period.
dseconds Quickly create exact time spans.
hms Create a period with the specified hours, minutes, and seconds
add_epoch_to_date Add epochs to dates
Timespan-class Timespan class
parse_date_time Parse character and numeric date-time vectors with user friendly order formats.
rollback Roll back date to last day of previous month
with_tz Get date-time in a different time zone
int_start Access and change the start date of an interval
force_tz Replace time zone to create new date-time
new_difftime Create a difftime object.
int_standardize Ensures all intervals in an interval object are positive
int_flip Flip the direction of an interval
new_period Create a period object.
seconds_to_period Contrive a period from a given number of seconds
as.duration Change an object to a duration.
int_overlaps Test if two intervals overlap
int_length Get the length of an interval in seconds
days_in_month Get the number of days in the month of a date-time.
ms Create a period with the specified number of minutes and seconds
origin 1970-01-01 UTC
Period-class Period class
leap_year Is a year a leap year?
new_epoch Create an epoch object
is.period Is x a period object?
int_end Access and change the end date of an interval
round_date Rounding for date-times.
DateUpdate Changes the components of a date object
is.duration Is x a duration object?
int_aligns Test if two intervals share an endpoint
lakers Lakers 2008-2009 basketball data set
hm Create a period with the specified number of hours and minutes
Duration-class Duration class
dst Get Daylight Savings Time indicator of a date-time.
DateCoercion Convert a variety of date-time classes to POSIXlt and POSIXct
today The current date
fit_to_timeline Fit a POSIXlt date-time to the timeline
decimal_date Converts a date to a decimal of its year.
is.timespan Is x a length of time?
ymd_hms Parse dates that have hours, minutes, or seconds elements.
wday Get/set days component of a date-time.
as.interval Change an object to an interval.
now The current time
ymd Parse dates according to the order in that year, month, and day elements appear in the input vector.
ceiling_date Round date-times up.
is.interval Is x an Interval object?
Interval-class Interval class
hour Get/set hours component of a date-time.
%m+% Add and subtract months to a date without exceeding the last day of the new month
olson_time_zones Names of available time zones
pretty_dates Computes attractive axis breaks for date-time data
quarter Get the fiscal quarter of a date-time.
second Get/set seconds component of a date-time.
is.Date Is x a Date object?
int_shift Shift an interval along the timeline
timespan Description of time span classes in lubridate.
reclass_timespan Convenience method to reclass timespans post-modification.
new_interval Create an interval object.
new_duration Create a duration object.
year Get/set years component of a date-time.
floor_date Round date-times down.
lubridate_formats Lubridate format orders used in stamp
make_difftime Makes a difftime object from a given number of seconds
%within% Tests whether a date or interval falls within an interval
reclass_date Convenience method to reclass dates post-modification.
week Get/set weeks component of a date-time.
am Does date time occur in the am or pm?
lubridate Dates and times made easy with lubridate
is.POSIXt Is x a POSIXct or POSIXlt object?
is.difftime Is x a difftime object?
period_to_seconds Convert a period to the number of seconds it appears to represent
yday Get/set days component of a date-time.
No Results!

Last month downloads

Details

License GPL
LazyData true
Type Package
BugReports https://github.com/hadley/lubridate/issues
VignetteBuilder knitr
Collate 'time-zones.r' 'POSIXt.r' 'timespans.r' 'numeric.r' 'util.r' 'durations.r' 'periods.r' 'intervals.r' 'difftimes.r' 'Dates.r' 'coercion.r' 'ops-addition.r' 'ops-division.r' 'ops-integer-division.r' 'ops-modulo.r' 'ops-multiplication.r' 'ops-subtraction.r' 'accessors-day.r' 'accessors-dst.r' 'accessors-hour.r' 'accessors-minute.r' 'accessors-month.r' 'accessors-second.r' 'accessors-tz.r' 'accessors-week.r' 'accessors-year.r' 'am-pm.r' 'decimal-dates.r' 'epochs.r' 'help.r' 'instants.r' 'leap-years.r' 'parse.r' 'pretty.r' 'round.r' 'update.r' 'data.r' 'guess.r' 'stamp.r' 'ops-%m+%.r' 'accessors-quarter.r'
Packaged 2013-12-05 18:41:10 UTC; garrettgrolemund
NeedsCompilation no
Repository CRAN
Date/Publication 2013-12-05 19:55:50

Include our badge in your README

[![Rdoc](http://www.rdocumentation.org/badges/version/lubridate)](http://www.rdocumentation.org/packages/lubridate)