• 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: Recording and looking up dates, when day-wide precision is required
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Recording and looking up dates, when day-wide precision is required


  • Subject: Re: Recording and looking up dates, when day-wide precision is required
  • From: Lachlan Deck <email@hidden>
  • Date: Tue, 23 Dec 2008 07:22:13 +1100

On 23/12/2008, at 6:32 AM, Florijan Stamenkovic wrote:

I am recording daily currency conversion rates.

The problem I have is that at the moment currency information can be input from wherever on the planet. Now, most users will deal with date info only, when it comes to currency info, leaving time and timezone issues in Java's hands.

Right so a user puts in a date like '23 Dec 2008'

Java seems to automatically set a parsed date to the time of 00:00:00 in the current timezone.
What I am thinking of is "normalizing" dates after input.

It'll parse the time into whatever timezone you set to the formatter. If you're using SimpleDateFormat, for example, set the timezone to be parsed (if other than the default). You could set it to GMT for example .. or allow the user to select it.


Essentially extracting the date (textually) from the Date that Java parsed, and setting it to 12:00:00 GMT, in hope that will ease qualification / filtering later on.

Shouldn't need to worry about that if you get the input right. Just ensure you keep your Java/WO timezone info up to date.
http://support.apple.com/kb/TA24629?viewlocale=en_US
http://java.sun.com/javase/timezones/


with regards,
--

Lachlan Deck



_______________________________________________
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: Recording and looking up dates, when day-wide precision is required
      • From: Florijan Stamenkovic <email@hidden>
References: 
 >Recording and looking up dates, when day-wide precision is required (From: Florijan Stamenkovic <email@hidden>)

  • Prev by Date: Re: GWT / was: [OT] New WO Years Resolutions.
  • Next by Date: Re: Why is this happening?
  • Previous by thread: Re: Recording and looking up dates, when day-wide precision is required
  • Next by thread: Re: Recording and looking up dates, when day-wide precision is required
  • Index(es):
    • Date
    • Thread