lubridate v1.3.0

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

Include our badge in your README

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