Debian Codegraph @

Changes

raw
1 Changes for DateTime::Set
2
3 0.3900 2016-10-09
4 - require Params::Validate
5
6 0.3800 2016-05-23
7 - doc patch, by Lucas Kanashiro.
8
9 0.3700 2016-05-17
10 - end() / max() and start() / min() are aliases to the same method in all classes.
11 Added docs and tests. Reported by Vincent Berger.
12
13 0.3600 2015-11-11
14 - move t/22intersects.t to DT::Event::Recurrence module
15
16 0.3500 2015-11-10
17 - [rt.cpan.org #108633] Recurrent event does not intersect indefinite future,
18 test contributed by Brett Watson.
19 - documentation - intersects() returns 0 for false, and 'undef' for
20 undecidable.
21
22 0.3400 2014-02-12
23 - documentation and packaging fixes - by David Steinbrunner.
24 - version number using 4 digits - requested by David Marshall.
25
26 0.33 2013-09-15
27 - bugfix in SpanSet->grep. Reported by Andreas Isberg
28
29 0.32 2013-08-27
30 - ignore duration signal in DateTime::Span->from_datetime_and_duration()
31 and use the 'end'/'start' parameters as a cue for the time direction,
32 suggested by David Pottage
33 - more tests of intersections with open/closed ended spans
34
35 0.30 2011-04-11
36 - new test file t/21from_recurrence.t
37 Contributed by Olivier Mengue
38
39 0.29 2011-04-01
40 - new method is_empty_set - bug #50750
41
42 0.28 2009-07-19
43 - optimized DateTime::Set->as_list().
44 This works around a segfault reported by Nils Grunwald.
45
46 0.27 2009-04-02
47 - fixed DateTime::Spanset duration() method.
48 Reported by Anton Berezin <[email protected]>
49
50 0.26 2008-12-25
51 - fixed DateTime::Spanset current() and set_time_zone() methods.
52 Report and tests by Elliot Shank.
53
54 0.25 2005-10-05
55 - t/15time_zone.t does it's own time zone "add_duration" handling
56
57 0.24 2005-10-03
58 - _recurrence.pm warned when the recurrence didn't have occurrences before
59 a given start date. Reported by Mark D. Anderson.
60
61 0.23 2005-10-03
62 - _recurrence.pm died when the recurrence didn't have occurrences before
63 a given start date. Reported by Mark D. Anderson.
64
65 0.22 2005-05-06
66 - DateTime::Set 0.21 dies when as_list is asked to produce a list from
67 outside the range of the set. Patch contributed by Stephen Gowing.
68
69 0.21 2005-04-06
70 - no hard limit in count() and as_list(); removed the warnings from the docs.
71
72 0.20 2005-02-28
73 - changed tests to use en_US instead of pt_BR (which changes every year)
74 by Dave Rolsky.
75 - optimized SpanSet methods for special cases:
76 start_set()
77 end_set()
78 contains( $dt )
79 intersects( $dt )
80 - added an example to count(), by David Nicol.
81 - added a note about how the result of min()/max() is just a copy of the
82 actual set boundary. Reported by Ron Hill.
83
84 0.19 2004-11-29
85 - added more comments on as_list() and count() behaviour on large sets.
86 Reported by Rick Frankel (rt ticket 8611)
87
88 0.18 2004-11-25
89 - ignore "__DIE__" signal while calculating durations.
90 Reported by michelle.agnew (rt ticket 5434)
91
92 0.17 2004-08-17
93 - bugfix: it was trying to set the time zone of an "undef" value;
94 this has broken some DT::Event::Recurrence tests - reported by Bill Moseley
95
96 0.1603 2004-07-05
97 - revised documentation, some examples were rewritten.
98 - deprecate "iterate" method
99 - Build.PM requires Set::Infinite 0.59 - reported by Tim Muller-Seydlitz
100
101 0.1602 2004-07-02
102 - fixed time zone handling in the methods:
103 set_time_zone
104 next/previous/closest/current
105
106 - removed limitation of duration size in methods:
107 add/add_duration
108 subtract/subtract_duration
109
110 - requires Set::Infinite 0.59 - uses iterate() experimental
111 argument "backtrack_callback"
112
113 - the following methods are now mutators:
114 set_time_zone( $tz )
115 set( locale => $locale )
116 add( unit => $n )
117 add_duration( $dur )
118 subtract( unit => $n )
119 subtract_duration( $dur )
120
121 - fixed max/min of an infinite SpanSet
122 - added test for infinite duration
123
124 - from_recurrence() code cleanup
125
126 - parameter checking: The 'dates' argument to from_datetimes()
127 must be a list of DateTime objects
128
129 0.1601 2004-03-30
130 - more parameter checking;
131 Sets should interoperate better with objects of
132 type DateTime::Event::* and DateTime::Incomplete
133
134 0.16 2004-03-29
135 - Makefile.PL skips processing of "Build.PL"
136 Reported by Reinhold May
137
138 0.15 2004-03-28
139
140 [ ENHANCEMENTS from version 0.14 ]
141
142 - Both "Makefile.PL" and "Build.PL" are provided.
143
144 - New methods:
145 DateTime::SpanSet::current
146 DateTime::Spanset::closest
147 DateTime::Set::map / grep
148 DateTime::SpanSet::map / grep
149 DateTime::SpanSet::intersected_spans
150 DateTime::SpanSet::start_set / end_set
151
152 - Recurrences can be bounded sets.
153
154 - Recurrences can be as small as 1 nanosecond.
155
156 - DateTime::SpanSet::duration may return an 'infinite'
157 DateTime::Duration (instead of scalar infinity).
158
159 [ *** BACKWARDS INCOMPATIBILITIES from version 0.14 *** ]
160
161 - The next/previous functions used in DT::Set->from_recurrence()
162 MUST work with DateTime::Infinite::Future
163 and DateTime::Infinite::Past parameters.
164
165 Failing to test for "infinity" values is known
166 to cause an infinite loop in some modules.
167
168 - DateTime::Set and DateTime::SpanSet methods do not mutate the set.
169 This was the behaviour in version 0.13
170
171 0.1413 2004-03-28
172 - detect_bounded => 1 is deprecated.
173
174 0.1412 2004-03-28
175 - DateTime::Set->from_recurrence - Bounded recurrences are "optional".
176 use " detect_bounded => 1 " to turn them on.
177 This fixes the backwards incompatibilities created by version 0.1402.
178
179 0.1411 2004-03-27
180 - Makefile.PL. Suggested by Randal L. Schwartz.
181
182 0.1410 2004-03-26
183 - Build.PL
184
185 0.1409 2004-03-23
186 - evaluation of bounded recurrences is "lazier".
187 (DateTime::Incomplete tests are twice as fast)
188
189 0.1408 2004-03-22
190 - refactored S::I::_recurrence class:
191 it doesn't use "current" anymore;
192 small bugfixes & optimizations.
193 ("current" was not documented in DT::Set)
194 - new test: t/17quantize.t
195 Tests a method to make "quantization" (or "discretization")
196 of spansets.
197
198 0.1407 2004-03-16
199 - New methods:
200 DateTime::SpanSet::current
201 DateTime::Spanset::closest
202
203 - "Fixed" DateTime::SpanSet::next / previous
204 no longer "split" the returned spans.
205
206 - Added examples and parameter validation to map / grep
207
208 - DateTime::SpanSet::duration may return an 'infinite'
209 DateTime::Duration, instead of scalar infinity.
210
211 - Bugfix: DateTime::Spanset::union / intersection / ...
212 correctly accept DateTime parameters.
213
214 0.1406 2004-03-15
215 - New methods:
216 DateTime::Set::map / grep
217 DateTime::SpanSet::map / grep
218 From a discussion with Andrew Pimlott and Dave Rolsky
219 - Cleanup "datetime" code from _recurrence.pm
220 - iterate() marked as "internal"
221
222 0.1405 2004-03-15
223 - New method: DateTime::SpanSet::intersected_spans
224 Suggested by Reinhold May
225 Name suggested by Dave Rolsky
226
227 0.1404 2004-03-14
228 - New methods: DateTime::SpanSet::start_set / end_set
229 These are the inverse of the "from_sets" method.
230 Suggested by Reinhold May
231
232 0.1403 2004-03-10
233 - new method DateTime::SpanSet::iterate
234
235 [ *** BACKWARDS INCOMPATIBILITIES *** ]
236
237 - DateTime::Set and DateTime::SpanSet methods do not mutate the set.
238 This is the behaviour we had before version 0.13
239
240 0.1402 2004-03-08
241 - Recurrence functions can be used to generate bounded sets.
242 See: t/16bounded_recurrence.t
243
244 - There is no limit on how small a recurrence can be.
245 Recurrences as small as 1 nanosecond are possible.
246
247 [ *** BACKWARDS INCOMPATIBILITIES *** ]
248
249 All modules that create their own recurrences
250 must now be able to respond to DateTime::Infinite::Future
251 and DateTime::Infinite::Past parameters. The easiest way
252 to do this is to add this to the first line of the recurrence
253 subroutines:
254
255 next => sub {
256 return $_[0] if $_[0]->is_infinite;
257 ...
258 }
259 previous => sub {
260 return $_[0] if $_[0]->is_infinite;
261 ...
262 }
263
264 0.1401 2003-11-06
265 - span() was returning the set, instead of the result.
266
267 0.14 2003-11-02
268 - duration() should not set $@ for sets with infinity duration.
269 Reported by Dan Kubb.
270
271 0.13
272 0.1205 2003-10-16
273 - requires Set::Infinite 0.54 (it is the "published" version of 0.5307)
274 - DateTime::Set add_duration mutates the set. This is more compatible
275 with the way the DateTime.pm API works.
276 - new DateTime::SpanSet methods:
277 as_list( $span_spec ), next( $dt|$span ), previous( $dt|$span )
278
279 0.1204 2003-10-10
280 - DateTime::SpanSet and DateTime::Span inherit DateTime::Set $VERSION
281 - Trying to subtract infinity from a datetime is not fatal in duration()
282 Bug report by Dan Kubb.
283 - new method 'iterate'
284 - requires Set::Infinite 0.5307 (pass new backtracking tests)
285 - added more tests for add_duration, subtract_duration
286 - added set( locale => .. ) to DateTime::Set
287
288 0.1203 2003-09-26
289 - Added docs to Set::Infinite::_recurrence;
290 split into a separate file such that it doesn't mix the pods
291 - refactored union / intersection
292 - _is_recurrence test prevents error when programming subroutine methods
293
294 0.1202 2003-09-24
295 - fixed set_time_zone and add_duration:
296 was not clearing 'next' upon return, when arg was a recurrence.
297
298 0.1201 2003-09-24
299 - optimized contains() and intersects() when arg is a datetime
300 - recurrence constructor always adds '->clone' to recurrence function
301 - refactored _recurrence method;
302 first/last of recurrences are calculated 'on demand'
303 - requires Set::Infinite 0.5305
304
305 0.12 2003-09-22
306 - implement previous() in DT::SpanSet.pm
307 - Fixed: set_time_zone would mutate a clone.
308
309 0.11 2003-09-19
310 - Fixed callback return value on set_time_zone.
311 This caused the start date to be equal to the end date.
312 Bug found by Dan Kubb.
313
314 0.10 2003-09-02
315 - DateTime::Span->duration now uses the new subtract_datetime_absolute
316 method, which means that the duration is always given in seconds.
317
318 - supports _huge_ recurrence sets (not infinite) with "virtual" elements.
319 these sets have 'undef' count.
320 Experimental - mostly untested !
321 this adds support for sets like 'all seconds in 2003'
322
323 - faster recurrence intersection
324 - count returns 'undef' for infinite sets.
325
326 0.09 2003-08-18
327 - added DT::Set count()
328 - fixed DT::SpanSet duration()
329 - methods that accepted a DT object, now accept a list of DT objects.
330 Suggested by Ben Bennet, I think.
331 - added _callback_next - "previous-only recurrences"
332
333 - optimizes intersection of recurrence with span
334
335 - internal 'S::I' recurrence class
336
337 - small fix in DT::Set clone()
338 - DateTime::Set uses DateTime infinity constants;
339 max and min now return DateTime::Infinite::Future/Past objects.
340
341 - DateTime::Span uses DateTime infinity constants;
342 max and min now return DateTime::Infinite::Future/Past objects.
343 Docs update to explain 'max()' value when a span is built using 'before'.
344
345 - added method set_time_zone()
346 - clone() is documented
347
348 0.08 2003-05-30
349 - recurrence set intersection uses 'current'
350 - fixed a number of methods in DateTime::Span, including intersection,
351 intersects, contains, union, and complement, all of which called the
352 non-existent DateTime::Set->new method. Dave Rolsky.
353
354 0.07 2003-05-23
355 - some tweaking on intersection, union, and in the recurrence generator.
356 - more tests
357
358 0.06 2003-05-14
359 - added 'use warnings' in some tests, added DateTime 0.12 prereq.
360
361 0.04 2003-05-12
362 - change "closest" code to avoid duration comparison
363
364 0.03 2003-04-27
365 - fixes in Set.pm as_list, span.
366 - iterator accepts 'span' parameters. Ben Bennett
367 - remove deprecated DateTime::Set->new and DateTime::SpanSet->new. Dave Rolsky
368 - requires Set::Infinite 0.49
369
370 0.02 2003-04-20
371 - removed some calls to 'new'
372 - added many methods from DT::Event::Recurrence
373 - add 'span' parameter to as_list
374 - from_recurrence now accepts next + previous
375
376 0.01 2003-04-19
377
378 - first "official" release.
379 - implemented DateTime::SpanSet->from_sets and
380 DateTime::SpanSet->from_set_and_duration
381 - Many doc tweaks. Dave Rolsky
382 - DateTime::Span->duration and DateTime::SpanSet->duration now return
383 infinity instead of undef for infinite spans. Dave Rolsky
384 - Added DateTime::SpanSet->empty_set. Dave Rolsky
385
386 0.00_20 2003-04-10
387
388 - Docs for DateTime::SpanSet API
389 (not implemented)
390 - DateTime::Span API:
391 from_datetime_and_duration, from_datetimes
392
393
394 0.00_18 2003-03-25
395
396 - changes docs, changed API
397 from_recurrence, from_datetimes, new()
398 - as_list
399 - previous() method (quite untested)
400 - small API changes
401 - revised docs, from Dave Rolsky
402 - small bugfix in creating open spans
403 - added DateTime::Span and DateTime::SpanSet
404 - put "..." to mark where we need more docs
405 - DateTime::Set and DateTime::Span API look ok.
406
407
408 0.00_13 2003-03-19
409
410 - added tests for set operations with recurrences/add
411 - iterator passes all tests
412 - the API is complete, as described in SYNOPSIS
413 - small fix in add() syntax; accepts a duration=> parameter
414 - iterator, next
415
416
417 0.00_10 2003-03-14
418
419 - union, intersection
420 - experimental code to generate recurrence from a simple callback
421
422
423 0.00_07 2003-02-28
424
425 - added experimental method create_recurrence()
426 - added experimental method add_duration()
427 - improved SYNOPSIS
428 - added 'immutability' tests
429 - new() will not try to clone non-DateTime parameters (such as the
430 Infinity value)
431 - The program will die with an error message,
432 if one tries to use offset() or quantize() methods
433 These methods might come back in a later version.
434 - new() clones its parameters.
435 This means the parameters don't have to be immutable
436 - new() will give an error message if we try to use a scalar parameter
437 instead of a DateTime
438 - Uses Set::Infinite as base class, instead of Date::Set::Timezone
439 This means some methods just disappeared, like event() and exclude().
440 RFC2445 support might come back in a later revision.
441 - Removed experimental Autoload code
442 - Added 'Changes' and 'README'
443 - moved POD to end of source file.
444