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 protected]> > To: Paul Yu <[email protected]> > Cc: WebObjects Development <[email protected]> > Subject: Re: LocalDate and D2W redux > Message-ID: <[email protected]> > 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 protected]) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to [email protected]
