Re: LocalDate and D2W redux
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?
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