1
0
mirror of https://github.com/rlanvin/php-rrule.git synced 2024-11-28 05:24:10 +01:00
Commit Graph

208 Commits

Author SHA1 Message Date
rlanvin
b527621fa5 Always cloning Datetime passed to parseDate to avoid any reference bug 2016-03-24 09:27:25 +02:00
rlanvin
3a84bcc6be Fix cache related bug at weekly frequencies 2016-03-24 09:23:11 +02:00
Rémi Lanvin
3162337ace Merge pull request #8 from gordonzhao/master
Update occursAt function to handle DateTime in different timezone
2016-03-24 09:10:02 +02:00
rlanvin
af1e19e3e2 Updating README 2016-03-23 18:49:37 +02:00
rlanvin
c52b61f2a5 Keep RDATE and EXDATE ordered in RSet 2016-03-23 18:04:10 +02:00
rlanvin
0a46d7cd35 OccursAt for RSet
Ref #7
2016-03-23 17:36:24 +02:00
rlanvin
ea059ca381 Removing occursOn (use occursAt) 2016-03-23 17:36:06 +02:00
rlanvin
d949e96c59 getOccurrencesBetween and cache for RSet 2016-03-23 17:05:33 +02:00
rlanvin
65886d99a2 Making sure DateTime objects are cloned
To avoid problems with cache corruption because DateTime are mutable
2016-03-23 16:00:40 +02:00
rlanvin
85d349f438 Updating CHANGELOG 2016-03-23 12:07:50 +02:00
rlanvin
76e6698b51 Updating CHANGELOG and README 2016-03-23 12:04:41 +02:00
rlanvin
e0ca376396 Adding tests for occursAt + timezone
Ref #8
2016-03-23 12:03:43 +02:00
gordonzhao
98f51863d9 Update occursAt function to handle DateTime in different timezone 2016-03-22 16:16:52 +10:00
rlanvin
0cf1540f85 count, offsetExists and offsetGet for RSet
offsetGet is uncached at the moment (ref #7)
2016-03-21 23:56:35 +02:00
rlanvin
d2384c1997 Adding interface to make RSet behave like RRule
Recurrence rules and a recurrence sets now share the same interface.
Also added isFinite() and isInfinite() methods, and improved
the implementation of RSet (ref #7)
2016-03-21 22:43:38 +02:00
rlanvin
c3213e64fd Using references for easier reading 2016-03-21 21:55:40 +02:00
rlanvin
58a8475ba7 First draft implementation for recurrence set
The new class RSet can contain multiple RRULE, RDATE, EXRULE and EXDATE.

Ref #7
2016-03-15 23:31:57 +02:00
rlanvin
9a5cbdf93e Replacing static variables by class variables
Static variables in the class method caused a problem when
iterating multiple RRule object at the same time.
2016-03-15 23:30:50 +02:00
rlanvin
d735154d6f Using PSR-4 autoloader instead of classmap 2016-03-15 18:46:31 +02:00
rlanvin
3efef919bd Adding comments 2016-03-14 12:29:17 +02:00
rlanvin
7fab9eab83 Updating changelog 2016-03-11 11:57:57 +02:00
rlanvin
56be0e5d76 Updating changelog 2016-03-11 11:54:59 +02:00
rlanvin
7b0df39bbe Adding a changelog file 2016-03-11 11:20:11 +02:00
rlanvin
2e94688553 Language fix in comment 2016-03-11 11:03:11 +02:00
rlanvin
7e312eaf76 Adding a dedicated test for timezone 2016-03-11 11:02:40 +02:00
Rémi Lanvin
c8fedbbb5b Merge pull request #6 from gordonzhao/master
Return results in the same timezone as DTSTART
2016-03-11 10:55:11 +02:00
gordonzhao
4442384a6f Fix bug with timezone which is not UTC
- Add timezone to the Datetime creation
  - Add timezone to the rfcExample test
2016-03-11 15:42:34 +10:00
Rémi Lanvin
93f730e990 Merge pull request #5 from marcorivm/patch-1
Add composer require command for a more streamlined install
2016-03-10 14:51:25 +00:00
Marco Rivadeneyra
16ea141afc Add composer require command for a more streamlined install 2016-03-09 08:29:21 -06:00
rlanvin
16a546f5cd Updating README 2016-03-02 09:48:36 +02:00
rlanvin
dc6dc60f65 Explicitely using the namespace for LogicException (#3) 2016-02-25 12:35:51 +02:00
rlanvin
897f08d736 Fix a typo in method comment
fix #2
2016-02-18 16:52:41 +02:00
rlanvin
27f6550b33 Adding check for DateTimeInterface to support DateTimeImmutable objects 2015-12-09 14:46:39 +02:00
rlanvin
660012a2f1 Improved Finnish translation 2015-11-25 14:08:20 +02:00
Rémi Lanvin
9aac806f79 Merge pull request #1 from javidalkaruzi/master
Changed $opt['locale'] to $locale
2015-11-11 21:24:53 +02:00
javidalkaruzi
41c719feac Changed $opt['locale'] to $locale 2015-11-11 14:18:02 -05:00
rlanvin
c303be940d Partial Finnish translation 2015-07-08 15:05:44 +03:00
rlanvin
13626f66c5 Better string generation & parsing 2015-07-08 12:40:45 +03:00
rlanvin
fba57c4ef2 Various methods to convert from and to strings
- rfcString() (as well as __toString() to convert to RFC 5545
- parseRfcString() to parse RFC 5545
- humanReadable() to output the rule as a sentence

humanReadable is still a work in progress - in particular the
i18n and some BYXXX parts are not finished.
It also requires intl extension.
2015-07-07 19:19:35 +03:00
rlanvin
38df1fc962 Implement getOccurrencesBetween() 2015-07-03 12:25:50 +03:00
rlanvin
b1000a4afd Implementing cache, ArrayAccess and Countable 2015-07-02 17:12:48 +03:00
rlanvin
b3ec2fb271 Fix a bug with year 2038 on 32bits systems
There was still a few mktime() left. They have been replaced
by DateTime.
2015-07-01 14:14:05 +03:00
rlanvin
5f409deae9 Adding debug for failing test on Travis 2015-07-01 12:56:09 +03:00
rlanvin
8de2807d17 More tests, code cleanup 2015-07-01 12:23:39 +03:00
rlanvin
66e56cd4f9 Implementing BYSETPOS with freq > DAILY
Needs more tests
2015-06-30 18:19:09 +03:00
rlanvin
066a97d517 Implementing HOURLY/MINUTELY/SECONDLY frequencies
Also adding more tests and fixing bugs
BYSETPOS + time is still broken!!
2015-06-29 15:51:54 +03:00
rlanvin
fc13d3f8d7 More PHP 5.3 compatibility fixes 2015-06-27 14:27:02 +03:00
rlanvin
b192c38752 More PHP 5.3 compatibility fixes 2015-06-27 14:25:37 +03:00
rlanvin
982357f55a More PHP 5.3 compatibility fixes 2015-06-27 14:21:07 +03:00
rlanvin
783a9b5c97 More PHP 5.3 compatibility fixes 2015-06-27 14:18:58 +03:00