Comments (7)
We do have a branch for this already - jsr-310, however to be honest we haven't made much progress as yet. This is definitely a priority however it will not be a trivial task.
from ical4j.
This https://github.com/ThreeTen/threetenbp library can be used to unify the code, works for us
from ical4j.
What is the more efficient way to use the existing ical4j API with LocalDate, LocalDatetime ?
I have tried with ZoneId
and Instant
classes but i'm not sure that is the best solution:
LocalDateTime startDate = LocalDateTime.now();
ZoneId zoneId = ZoneId.of("Europe/Paris");
DateTime eventStartDate = new DateTime(startDate.atZone(zoneId).toInstant().toEpochMilli());
VEvent vEvent = new VEvent(eventStartDate, ...);
from ical4j.
when i talk about support of jsr-310, i mean that the external api support method with java.time types. it could be a first step of the support of the jsr-310 (have 2 methods each with previous and new datetime Java api).
When you talk about jsr-310 support you mean rewrite all the code of the library ?
from ical4j.
Yes, I was thinking of replacing the duration, date-time, period, etc
classes. I guess in the interim we could provide some utility methods for
conversion, but it's probably a similar amount of work as what I was
planning.
On 26 Dec 2015 10:24 pm, "Aurélien Leboulanger" [email protected]
wrote:
when i talk about support of jsr-310, i mean that the external api support
method with java.time types. it could be a first step of the support of the
jsr-310 (have 2 methods each with previous and new datetime Java api).
When you talk about jsr-310 support you mean rewrite all the code of the
library ?—
Reply to this email directly or view it on GitHub
#62 (comment).
from ical4j.
@benfortuna, i forked and checkout the jsr-310 branch to try to continue your job but i have some questions about it:
- does it update compare to the master branch in term of behaviors ?
- some unit tests are not ok (partially or entirely):
- net.fortuna.ical4j.filter.PeriodRuleTest
- net.fortuna.ical4j.data.CalendarBuilderTest
net.fortuna.ical4j.filter.FilterTest#testFilteredIsNotEmpty
- net.fortuna.ical4j.model.DurTest
- net.fortuna.ical4j.model.DurSpec
- net.fortuna.ical4j.filter.PeriodRuleTest
- net.fortuna.ical4j.data.CalendarBuilderTest
- The usage of ThreeTen is mandatory ? you want to keep the project compliant with jdk 7 or jdk 6 ?
from ical4j.
- Yes the jsr-310 branch is based off master
- Failing tests are a known issue I think - need to verify if the test will change or the code
- Initially I wanted to support Java 6 onwards, but if there is a reason not to I would consider Java7 minimum
from ical4j.
Related Issues (20)
- Time of Event not correct with Events from Wordpress Events Manager HOT 5
- Wrong operator precedence in TemporalAmountAdapter.java v3.2.13
- nebula plugins should probably be removed - latest versions are no-op HOT 1
- calculateRecurrenceSet produces invalid data after DST shift HOT 7
- Unexpected Timezone offset with ical4j 4.0.0-rc1 HOT 2
- TZID prefix added to UTC datetimes HOT 2
- Update android minify receipe in https://www.ical4j.org/android/ for R8-Minify HOT 1
- Outlook ics "nested too deep" HOT 3
- Times of events are off by one hour HOT 1
- Validation does not spot quite simple contraints
- Cannot parse EMAIL="mailto:[email protected]" HOT 2
- Exchange is unable to actively parse ICS file, but Outlook 365 can parse it normally.
- extractor.ICalendarExtractor: Unable to parse icalendar with slashed
- Errors need to be flagged as such in log HOT 1
- TZ aliases not working HOT 2
- `DateListPropertyRule` not fixing time zone name HOT 1
- `calculateRecurrenceSet` return value is not accurate
- ClassCastException: VAlarm cannot be cast to Observance when VTIMEZONE contains a VALARM
- UTC vs Etc/UTC - CalendarBuilder Exception (java.time.DateTimeException: Unknown timezone identifier [UTC]) HOT 4
- Summer-wintertime-change is not regarded in Component.calculateRecurrenceSet
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ical4j.