GithubHelp home page GithubHelp logo

Comments (7)

benfortuna avatar benfortuna commented on May 25, 2024

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.

solomax avatar solomax commented on May 25, 2024

This https://github.com/ThreeTen/threetenbp library can be used to unify the code, works for us

from ical4j.

herau avatar herau commented on May 25, 2024

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.

herau avatar herau commented on May 25, 2024

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.

benfortuna avatar benfortuna commented on May 25, 2024

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.

herau avatar herau commented on May 25, 2024

@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.

benfortuna avatar benfortuna commented on May 25, 2024
  • 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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.