Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 218 lines (115 sloc) 9.716 kB
98339f8 @garrettgman Updated the NEWS file to reflect changes in the S4 version
garrettgman authored
1
123d4db @garrettgman Updated NEWS for 1.2.0
garrettgman authored
2 Version 1.2.0
3 -------------------------------------------------------------------------
4 DEVELOPMENT
5
6 * lubridate 1.2.0 is significantly faster than lubridate 1.1.0. This is largely thanks to a parser rewrite submitted by Vitalie Spinu. Thank you, Vitalie. Some metrics:
7 - parser speed up - 60x faster
8 - `with_tz` speed up - 15x faster
9 - `force_tz` speed up - 3x faster
10
11 * Development for 1.2.0 has also focused on improving the way we work with months. `rollback` rolls dates back to the last day of the previous month. provides more options for working with months. `days_in_month` finds the number of days in a date's month. And, `%m+%` and `%m-%` provide a new way to handle unequal month lengths while doing arithmetic. See NEW FEATURES for more details
12
13 * date parsing can now parse multiple date formats within the same vector of date-times. Parsing can also recognize a greater variety of date-time formats as well as incomplete (truncated) date-times. Contributed by Vitalie Spinu. Thank you, Vitalie.
14
15 * 1.2.0 introduces a new display format for periods. The display is more math and international friendly.
16
17 * 1.2.0 transforms negative intervals into periods much more gracefully (e.g, - 3 days instead of -1 years, 11 months, and 27 days)
18
19 * S3 update methods are now exported
20
21 NEW FEATURES
22
23 * `stamp` allows users to print dates in whatever form they like. Contributed by Vitalie Spinu. Thank you, Vitalie.
24
25 * periods now handle fractional seconds. Contributed by Vitalie Spinu. Thank you, Vitalie.
26
27 * date parsing can now parse multiple date formats within the same vector of date-times. Parsing can also recognize a greater variety of date-time formats as well as incomplete (truncated) date-times. Contributed by Vitalie Spinu. Thank you, Vitalie.
28
29 * `sort`, `order`, `rank` and `xtfrm` now work with periods
30
31 * `as.period.Interval` accepts a unit argument. `as.period` will convert intervals into periods no larger than the supplied unit.
32
33 * `days_in_month` takes a date, returns the number of days in the date's month. Contributed by Richard Cotton. Thank you, Richard.
34
35 * `%m+%` and `%m-%` perform addition and subtraction with months (and years) without rollover at the end of a month. These can be used in place of + and -. These can't be used with periods smaller than a month, which should be handled separately. An example of the new behavior:
36
37 ymd("2010-01-31") %m+% months(1)
38 # "2010-02-28 UTC"
39
40 ymd("2010-01-31") + months(1)
41 # "2010-03-03 UTC"
42
43 ymd("2010-03-31") %m-% months(1)
44 # "2010-02-28 UTC"
45
46 ymd("2010-01-31") - months(1)
47 # "2010-03-03 UTC"
48
49 * `rollback` rolls a date back to the last day of the previous month.
50
51 * `quarter` returns the fiscal quarter that a date occurs in. Like `quartes` in base R, but returns a numeric instead of a character string.
52
53 BUG FIXES
54
55 * date parsers now handle NAs
56
57 * periods now handle NAs
58
59 * `[<-` now correctly updates all elements of a period inside a vector, list, or data.frame
60
61 * `period()` now works with unit = "weeks"
62
63 * `ceiling_date` no longer rounds up if a date is already at a ceiling
64
65 * the redundant (i.e, repeated) hour of fall daylight savings time now displays with the correct time zone
66
67 * `update.POSIXct` and `update.POSIXlt` handle vectors that sum to zero in the days argument
68
69 * the format method for periods, intervals and duration now accurately displays objects of length 0.
70
71
72
73
98339f8 @garrettgman Updated the NEWS file to reflect changes in the S4 version
garrettgman authored
74 Version 1.1.0
75 -------------------------------------------------------------------------
76 DEVELOPMENT
77
78 * lubridate no longer overwrites base R methods for +, - , *, /, %%, and %/%. To recreate the previous experience of subtracting two date times to create an interval, we've added the interval creation function %--%.
79
80 * lubridate has moved to an S4 object system. Timespans, Intervals, Durations, and Periods have each been redefined as an S4 class with its own methods.
81
82 * arithmetic operations will no longer perform implicit class changes between timespans. Users must explicitly state how and when they wish class changes to occur with as.period(), as.duration(), and as.interval(). This makes code written with lubridate more robust, as such implicit changes often did not produce consistent behavior across a variety of operations. It also allows lubridate to be less chatty with fewer console messages. lubridate does not need to explain what it is doing, because it no longer attempts to do things whose outcome would not be clear. On the other hand, arithmetic between multiple time classes will produce informative error messages.
83
84 * the internal structure of lubridate R code has been reorganized at https://github.com/hadley/lubridate to make lubridate more development friendly.
85
86
87 NEW FEATURES
88
89 * intervals are now more useful and lubridate has more ways to manipulate them. Intervals can be created with %--%; modified with int_shift(), int_flip(), and int_standardize(); manipulated with intersect(), union(), and setdiff(); and used in logical tests with int_aligns(), int_overlaps(), and %within%. lubridate will no longer perform arithmetic between two intervals because the correct results of such operations is no more obvious than the correct result of adding two dates. Instead users are encouraged to use the new set operations or to directly modify intervals with int_start() and int_end(), which can also be used as settors. lubridate now supports negative intervals as well as positive intervals. Intervals also now display with a time zone.
90
91 * Modulo methods for timespans have been changed to return a timespan. this allows modulo methods to be used with integer division in an intuitive manner, e.g.
92
93 a = a %/% b * b + a %% b
94
95 Users can still acheive a numerical result by using as.numeric() on input before performing modulo.
96
97 * Periods, durations, and intervals can now all be put into a data frame.
98
99 * Periods, durations, and intervals can be intuitively subset with $ and []. These operations also can be used as settors with <-.
100
101 * The parsing functions and the as.period method for intervals are now slightly faster.
102
078e9ca @garrettgman Added to news and updated examples
garrettgman authored
103 * month<- and wday<- settors accept names as well as numbers
98339f8 @garrettgman Updated the NEWS file to reflect changes in the S4 version
garrettgman authored
104
078e9ca @garrettgman Added to news and updated examples
garrettgman authored
105 * parsing functions now have a quiet argument to parse without messages and a tz argument to directly parse times into the desired time zone.
106
107 * logical comparison methods now work for period objects.
98339f8 @garrettgman Updated the NEWS file to reflect changes in the S4 version
garrettgman authored
108
f5eb392 @hadley Version bump
authored
109 Version 0.2.6
110 -------------------------------------------------------------------------
111
5f9fe05 @hadley Update testing harness
authored
112 * use `test_package` to avoid incompatibility with current version of
113 `testthat`
f5eb392 @hadley Version bump
authored
114
115 * other minor fixes to pass `R CMD check`
5f9fe05 @hadley Update testing harness
authored
116
395a3a2 @garrettgman updating NEWS file
garrettgman authored
117 Version 0.2.5
118 -------------------------------------------------------------------------
119
120 * added ymdThms() for parsing ISO 8061 formatted combned dates and times
121
122 BUG FIXES
123
124 * removed bug in parsing dates with "T" in them
125
126 * modified as.period.interval() to display periods in positive units
127
4b9af1b @hadley Add JSS citation
authored
128 Version 0.2.4
129 -------------------------------------------------------------------------
130
131 * Add citations to JSS article
132
ad496bb @garrettgman updated version number and described updates
garrettgman authored
133 Version 0.2.3
134 -------------------------------------------------------------------------
135 NEW FEATURES
136
137 * ymd_hms(), hms(), and ms() functions can now parse dates that include decimal values in the seconds element.
138
139 * milliseconds(), microseconds(), nanoseconds(), and picoseconds() create period objects of the specified lengths. dmilliseconds(), dmicroseconds(), dnanoseconds(), and dpicoseconds() make duration objects of the specified lengths.
140
141
142 BUG FIXES
143
03a2d1e @garrettgman fixed typo in NEWS
garrettgman authored
144 * lubridate no longer overwrites months(), start(), and end() from base R. Start and end have been replaced with int_start() and int_end().
ad496bb @garrettgman updated version number and described updates
garrettgman authored
145
146 * lubridate imports plyr and stringr packages, instead of depending on them.
147
148 Version 0.2.2
149 -------------------------------------------------------------------------
150 NEW FEATURES
151
152 * made division, modulo, and integer division operations compatible with difftimes
153
154 * created c() methods for periods and durations
155
156
157 BUG FIXES
158
159 * fixed bug in division, modulo, and integer operations with timespans
160
161
0ec2121 @garrettgman created more ymd_hms() type parsing functions for different orders or…
garrettgman authored
162 Version 0.2.1
163 -------------------------------------------------------------------------
164
165 NEW FEATURES
166
167 * created parsing functions ymd_hm ymd_h dmy_hms dmy_hm dmy_h mdy_hms mdy_hm mdy_h ydm_hms ydm_hm ydm_h, which operate in the same way as ymd_hms().
168
169 BUG FIXES
170
171 * fixed bug in add_dates(). duration objects can now be successfully added to numeric objects.
172
173
5f2d1e1 @garrettgman wrote NEWS file
garrettgman authored
174 Version 0.2
175 -------------------------------------------------------------------------
176
177 NEW FEATURES
178
179 * division between timespans: each timespan class (durations, periods, intervals)
180 can be divided by other timespans. For example, how many weeks are there between
181 Halloween and Christmas?: (christmas - halloween) / weeks(1)
182
183 * modulo operations between timespans
184
185 * duration objects now have their own class and display format separate from difftimes
186
187 * interval objects now use an improved data structure and have a cleaner display format
188
189 * lubridate now loads its own namespace
190
191 * math operations now automatically coerce interval objects to duration objects. Allows
192 intervals to be used "right out of the box" without error messages.
193
194 * created start() and end() functions for accessing and changing the boundary date-times of an interval
195
196
197 * rep() methods for periods, intervals, and durations
198
199
200
201 MINOR CHANGES
202
203 * added a package help page with functions listed by purpose
204
205 * eseconds(), eminutes(), etc. are aliased to dseconds(), dminutes(), etc. to make it easier
206 to remember they are duration objects.
207
208 * changed leap.years() to leap_years() to maintain consistent naming scheme
209
210
211
212 BUG FIXES
213
214 * rewrote as.period() to create only positive periods.
215
216 * fixed rollover bug in update.POSIXct()
217
218 * edited make_diff() to display in days when approporiate, not weeks
Something went wrong with that request. Please try again.