• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: java.time formatters
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: java.time formatters


  • Subject: Re: java.time formatters
  • From: Paul Hoadley <email@hidden>
  • Date: Mon, 13 Jun 2016 17:27:34 +0930

Hi Hugi,

On 10 Jun 2016, at 11:40 PM, Hugi Thordarson <email@hidden> wrote:

I’m in the process of migrating most of my old projects to use Java 8’s java.time.* classes for representing date and time (replacing NSTimestamp with LocalDateTime etc.).

This works great—apart from one problem: java.time.DateTimeFormatter, the formatter class used to format the java.time classes, doesn't inherit from java.text.Format which WOString expects for it’s formatter binding.

I’m just wondering if anyone has done something brilliant to solve this before I go ahead and write a java.text.Format class that wraps DateTimeFormatter as a workaround? Perhaps we should modify ERXWOString to allow DateTimeFormatter? Although that might be problematic since wonder targets java 7.

Wonder 7 targets Java 8. Also, Johann has started some work on using the new date and time API, so take a look at these:

https://github.com/wocommunity/wonder/issues/755
https://github.com/wocommunity/wonder/pull/756

He hasn’t looked at component support yet, but perhaps you could join that effort.


-- 
Paul Hoadley
http://logicsquad.net/



 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: java.time formatters
      • From: Hugi Thordarson <email@hidden>
References: 
 >java.time formatters (From: Hugi Thordarson <email@hidden>)

  • Prev by Date: Re: Map an Object in ERRest
  • Next by Date: Re: java.time formatters
  • Previous by thread: Re: java.time formatters
  • Next by thread: Re: java.time formatters
  • Index(es):
    • Date
    • Thread