• 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: Ramsey Gurley <email@hidden>
  • Date: Tue, 12 Jun 2012 08:47:08 -0700

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


On Jun 12, 2012, at 8:28 AM, Paul Yu wrote:

When we model a new EOModel is the recommendation to use jodaLocalDateTime??? or it depends?  

-- 
Paul Yu
Sent with Sparrow

On Tuesday, June 12, 2012 at 11:08 AM, Ramsey Gurley wrote:



 _______________________________________________
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

References: 
 >LocalDate and D2W redux (From: Paul Hoadley <email@hidden>)
 >Re: LocalDate and D2W redux (From: Ramsey Gurley <email@hidden>)
 >Re: LocalDate and D2W redux (From: Paul Yu <email@hidden>)

  • Prev by Date: Re: LocalDate and D2W redux
  • Next by Date: Re: LocalDate and D2W redux
  • Previous by thread: Re: LocalDate and D2W redux
  • Next by thread: Re: LocalDate and D2W redux
  • Index(es):
    • Date
    • Thread