• 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: LocalDate and D2W redux
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: LocalDate and D2W redux


  • Subject: Re: LocalDate and D2W redux
  • From: Theodore Petrosky <email@hidden>
  • Date: Tue, 12 Jun 2012 09:16:20 -0700 (PDT)

an invoice has a date that doesn't change because you are looking at it in CA instead of NY

> Message: 3
> Date: Tue, 12 Jun 2012 08:47:08 -0700
> From: Ramsey Gurley <email@hidden>
> To: Paul Yu <email@hidden>
> Cc: WebObjects Development <email@hidden>
> Subject: Re: LocalDate and D2W redux
> Message-ID: <email@hidden>
> Content-Type: text/plain; charset="utf-8"
>
> Depends on whether you need the time zone or not. 
>
> Let's say you want to say Walmart's black friday sale begins
> at 12 am on the Friday after Thanksgiving. You'd model that
> as a LocalDateTime because it's a date and time that is not
> specific to any time zone.  East coast stores start
> their sale 3 hours earlier than west coast stores because of
> the time zone difference.
>
> Similar for birthdate, but that's typically represented as
> LocalDate instead.  You'd use LocalTime to model
> something like tea time or happy hour at the pub :D
>
> DateTime or NSTimestamp are the only ones that use
> timezones. If you need a global time stamp to indicate when
> an event occurs, then you'd go with one of these.  The
> NYSE opens at 9am Eastern time this morning. If you're in
> California, it doesn't wait three hours for you to wake up
> :-)
>
> Ramsey
>
>

 _______________________________________________
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


  • Prev by Date: Re: LocalDate and D2W redux
  • Next by Date: Re: failed to find a snapshot for EO with Global ID
  • Previous by thread: Re: LocalDate and D2W redux
  • Next by thread: rackspace, centos and WO
  • Index(es):
    • Date
    • Thread